| Write the code to declare an array of doubles named prices. Use the array syntax from the videos. Do not initialize the variable. |
double[] prices; |
|
Complete the statement to create an array of ints called scores that can hold 50 ints. |
int[] scores = _______________;
new int[50] |
|
Given this statement
double temperatures = new double[12];
what is the length of the array, that is how many elements can it hold? |
12 |
|
Given this statement
double temperatures = new double[12]; what is the initial value of the element at index 5? |
0 |
|
Given this statement
double temperatures = new double[12];
complete this code to print the element at index 9.
System.out.println( ______________ );
| temperatures[9] |
|