Source Code : Creating a Two-Dimensional Array

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

Creating a Two-Dimensional Array

     


/*This example creates a two-dimensional array with 9 rows and a variable number 
of columns for each row. The first row is given 21 columns. The second row is 
given 5000 columns.
*/
public class Test2Darray2 {
  public static void main(String args[]) {
    int[][] multD = new int[9][];
    multD[0] = new int[21];
    multD[1] = new int[5000];
  }
}



           
         
    
    
    
    
  

Thank with us