Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to initialize an empty array in java

int[] numbers = new int[5]; /* Empty array of type int and size 5 */
String[] names = new String[10]; /* Empty array of type string and size 10 */
 
PREVIOUS NEXT
Tagged: #initialize #empty #array #java
ADD COMMENT
Topic
Name
7+7 =