Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
39 lines (34 loc) · 805 Bytes

File metadata and controls

39 lines (34 loc) · 805 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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)
* */
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.