Skip to content

Commit a38cbc9

Browse files
committed
fix: OneD Array.
Signed-off-by: Somesh diwan <[email protected]>
1 parent c4b4191 commit a38cbc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
21
public class OneDArray {
2+
public static void main(String[] args) {
3+
int[] arr = {1, 2, 3, 4, 5};
4+
for (int i = 0; i < arr.length; i++) {
5+
System.out.print(arr[i] + " ");
6+
}
7+
}
38
}

0 commit comments

Comments
 (0)