Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

multi dimensional array declaration in java

Syntax:
return_type [][]varible_name=new return_type[no_of_rows][no_of_columns];
int [][]a=new int[5][5];


Valid Declearation are following:
int [][]a=new int[5][5];
int []a[]=new int[5][5];
int [][]a[]=new int[5][5][5];
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #multi #dimensional #array #declaration #java
ADD COMMENT
Topic
Name
2+3 =