Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
We want to create a 2D double array with 9 rows and 7 columns and assign it to awesomeArray. Which of these is the best way to create the array?
9
7
awesomeArray
double awesomeArray[9][7] = new double[][];
double awesomeArray[][] = new double[9][7];
double[][] awesomeArray = new double[9][7];
double[9][7] awesomeArray = new double[][];
double awesomeArray[9][7] = new double[9][7];