-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAula0055.java
More file actions
39 lines (34 loc) · 805 Bytes
/
Aula0055.java
File metadata and controls
39 lines (34 loc) · 805 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
30
31
32
33
34
35
36
37
38
39
/*
:: SITE: eXcript.com
:: FB: fb.com/eXcript
:: URL: youtube.com/watch?v=lwu6Xe9Qklk&list=PLesCEcYj003Rfzs39Y4Bs_chpkE276-gD
:: NOME: Curso de Java - Aula 55 - Arrays Multidimensionais III
*/
public class Aula0055 {
public static void main(String[] args) {
int[][] nums = {{1,2,3},
{4,5,6},
{7,8,9}};
// int[][] x = new int[2][2];
for(int x = 0; x<3; x++){
for(int y = 0; y<3; y++)
System.out.print(nums[x][y]+" ");
System.out.println();
}
/*
* 1) de x
* x = 0;
* y = 0;(0,0)
* y = 1;(0,1)
* y = 2;(0,2)
* x = 1;
* y = 0;(1,0)
* y = 1;(1,1)
* y = 2;(1,2)
* x = 2
* y = 0;(2,0)
* y = 1;(2,1)
* y = 2;(2,2)
* */
}
}