Biblioteca Java - Blame information for rev 39
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
39 | mihai | 1 | package introducere.java.arrays; |
4 | mihai | 2 | |
3 | |||
4 | class MultiDimArrayDemo { | ||
5 | public static void main(String[] args) { | ||
6 | String[][] names = {{"Mr. ", "Mrs. ", "Ms. "}, | ||
7 | {"Smith", "Jones"}}; | ||
8 | System.out.println(names[0][0] + names[1][0]); //Mr. Smith | ||
9 | System.out.println(names[0][2] + names[1][1]); //Ms. Jones | ||
10 | } | ||
11 | } |