- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti_practice.java
More file actions
Latest commit
29 lines (27 loc) · 785 Bytes
/
Copy pathmulti_practice.java
File metadata and controls
29 lines (27 loc) · 785 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
26
27
28
29
packagecom.company;
importjava.util.Arrays;
publicclassmulti_practice {
publicstaticvoidmain(String[] args) {
int[][] house=newint[3][4];
house[0][0]=0;
house[0][1]=1;
house[0][2]=2;
house[0][3]=3;
house[1][0]=4;
house[1][1]=5;
house[1][2]=6;
house[1][3]=7;
house[2][0]=8;
house[2][1]=9;
house[2][2]=10;
house[2][3]=11;
System.out.println("Printing 2-D Array using 3*4");
for (inti = 0; i < house.length ; i++) {
for (intj = 0; j <house[i].length; j++) {
System.out.print(house[i][j]);
System.out.print(" ");
}
System.out.println( );
}
}
}