2015-04-20 15:36:01 -07:00
|
|
|
|
//: arrays/MultidimensionalPrimitiveArray.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-04-20 15:36:01 -07:00
|
|
|
|
// Creating multidimensional arrays.
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class MultidimensionalPrimitiveArray {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
int[][] a = {
|
|
|
|
|
{ 1, 2, 3, },
|
|
|
|
|
{ 4, 5, 6, },
|
|
|
|
|
};
|
|
|
|
|
System.out.println(Arrays.deepToString(a));
|
|
|
|
|
}
|
|
|
|
|
} /* Output:
|
|
|
|
|
[[1, 2, 3], [4, 5, 6]]
|
|
|
|
|
*///:~
|