Correct the print statment
This commit is contained in:
parent
3c65d2e8e7
commit
1f3cf7ccc3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue