- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray_2.java
More file actions
Latest commit
25 lines (21 loc) · 635 Bytes
/
Copy patharray_2.java
File metadata and controls
25 lines (21 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
publicclassarray_2 {
publicstaticvoidmain(String[] args) {
int[] mark;
int[][] flats;
flats = newint[2][3];
flats[0][0] = 101;
flats[0][1] = 102;
flats[0][2] = 103;
flats[1][0] = 201;
flats[1][1] = 202;
flats[1][2] = 203;
System.out.println("the flats");
for (inti = 0; i < flats.length; i++) {
for (intj = 0; j < flats[i].length; j++) {
System.out.print(flats[i][j]);
System.out.print(" ");
}
System.out.println("\n");
}
}
}