Skip to content

Commit b3f001b

Browse files
committed
Add array initialization with size
1 parent 075a365 commit b3f001b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

TestArray.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ public static void main (String[] args) {
2727
printArray(arr2);
2828

2929
System.out.println("Second element = " + arr[1]);
30+
31+
int[] arr3 = new int[4];
32+
printArray(arr3);
3033
}
3134
}

0 commit comments

Comments
 (0)