Correct the print statment

This commit is contained in:
Amitabh.Tiwari
2021-04-25 08:41:07 +05:30
parent b2113cc7b4
commit b159cc3fb7

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