Skip to content

Commit 398c1b1

Browse files
author
Yalun Qin
committed
Add array random access
1 parent 161110f commit 398c1b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

TestArray.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ public static void main (String[] args) {
2525

2626
int[] arr2 = returnArray(2, 4, 6);
2727
printArray(arr2);
28+
29+
System.out.println("Second element = " + arr[1]);
2830
}
2931
}

0 commit comments

Comments
 (0)