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
Consider the following code segment.
int rows = (int)((Math.random() * 10) + 1); int cols = (int)((Math.random() * 3) + 1); double [][] doubleArr = new double[rows][cols];
What is the maximum possible amount of elements that could fit in doubleArr?
doubleArr
3
10
30
40
44