Correct the print statment
@@ -6,7 +6,7 @@ public class MaxSizeArray {
for (int i = 2; i >= 0; i--) {
try {
int[] arr = new int[Integer.MAX_VALUE - i];
- System.out.format("Max-Size", Integer.MAX_VALUE - i);
+ System.out.println("Max-Size : "+ arr.length);
} catch (Throwable t) {
t.printStackTrace();
}
