Correct the print statment

This commit is contained in:
Amitabh.Tiwari 2021-04-25 08:41:07 +05:30
parent 3c65d2e8e7
commit 1f3cf7ccc3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}