diff --git a/core-java-modules/core-java-arrays-guides/src/main/java/com/baeldung/array/MaxSizeArray.java b/core-java-modules/core-java-arrays-guides/src/main/java/com/baeldung/array/MaxSizeArray.java index a83271c3df..76a6a9290a 100644 --- a/core-java-modules/core-java-arrays-guides/src/main/java/com/baeldung/array/MaxSizeArray.java +++ b/core-java-modules/core-java-arrays-guides/src/main/java/com/baeldung/array/MaxSizeArray.java @@ -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(); }