Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

using new to create arrays

//declare an array variable
int[] highScores;
// create the array
highScores = new int[5];
// declare and create array in 1 step!
String[] names = new String[5];
Source by runestone.academy #
 
PREVIOUS NEXT
Tagged: #create #arrays
ADD COMMENT
Topic
Name
6+6 =