Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to declare array java

int intArray[];    //declaring array
intArray = new int[20];  // allocating memory to array
//OR
int[] intArray = new int[20]; // combining both statements in one
 
PREVIOUS NEXT
Tagged: #declare #array #java
ADD COMMENT
Topic
Name
7+2 =