1 , we use the notation. ; 2  to declare a two-dimensional array, we add another pair of brackets; to create the array, we specify the number of rows followed by the number of columns after the type name (both within brackets), as follows: double[][] a = new double[M][N]; We refer to such an array as an M-by-N array.
http://introcs.cs.princeton.edu/java/14array/
Recall that we were not able to assign to the array elements in a similar way when the array was of type int. Moreover, in the case of array of objects, when we pass an array element to a method, the object is susceptible to changes. This is because the element being passed is also a reference type item. This differs from the situation when we have an int array. Following illustrates this concept.
http://www.javawithus.com/tutorial/array-of-objects
While there are two excellent answers telling you how to do it, I feel that another answer is missing: In most cases you shouldn't do it at all. Arrays are cumbersome, in most cases you are better off using the Collection API.
http://stackoverflow.com/questions/4781100/how-to-make-an-array-of-arrays-in-java
An array of objects is created just like an array of primitive type data items in the following way. Student[] studentArray = new Student[7]; The above statement creates the array which can hold references to seven Student objects. It doesn't create the Student objects themselves.
http://www.javawithus.com/tutorial/array-of-objects
See an int Array example online. A few main points about arrays in Java: 1  The Array is a data structure in Java that can hold one or more values in a single variable. 2  Array in Java is a collection of similar type of values. 3  Java has two types of arrays – single dimensional and multidimensional arrays. 4  Array index starts at 0.
http://www.tutorialscollection.com/java-array-how-to-create-declare-initialize-arrays-in-java-with-examples/
For example, we can create an array of Strings which is a reference type variable. However, using a String as a reference type to illustrate the concept of array of objects isn't too appropriate due to the immutability of String objects.
http://www.javawithus.com/tutorial/array-of-objects
While it's of course good and important to know about Arrays and their usage, in most cases using Collections makes APIs a lot more manageable (which is why new libraries like Google Guava hardly use Arrays at all). So, for your scenario, I'd prefer a List of Lists, and I'd create it using Guava:
http://stackoverflow.com/questions/4781100/how-to-make-an-array-of-arrays-in-java
4. @Terence: It does the same as the first: It creates an array of string array references, initialized to the values array1, array2, array3, array4 and array5 - each of which is in itself a string array reference. – Jon Skeet Jan 24 '11 at 11:05. Oh, I get it!
http://stackoverflow.com/questions/4781100/how-to-make-an-array-of-arrays-in-java
1 To access each of the elements in a two-dimensional array, we need nested loops: double[][] a; a = new double[M][N]; for (int i = 0; i. 2  Memory representation. 3  Java represents a two-dimensional array as an array of arrays.
http://introcs.cs.princeton.edu/java/14array/
How to declare an array. This is how an array in Java can be declared: ArrayDataType[] ArrayName; OR. ArrayDataType ArrayName[]; Where ArrayDataType defines the data type of the array elements like int, double etc.
http://www.tutorialscollection.com/java-array-how-to-create-declare-initialize-arrays-in-java-with-examples/
how to make array in java
To make an array in Java, use ArrayDataType[] ArrayName; OR. ArrayDataType ArrayName[];.