public class arrayOutput { public static void main (String[] args) { final int NUM_ELEMENTS = 3; int[] userVals = new int [NUM_ELEMENTS]; eye int i; int sumVal; uservals [0] 1; userVals [1] = 5; userVals [2] = 7; sumVal = 0; for (i = 0; i < userVals.length; ++i) { sumVal = sumVal + userVals [i]; System.out.println (sumVal); } ? } ? ??

icon
Related questions
Question

fill in the ? makes 

public class arrayOutput {
public static void main (String[] args) {
final int NUM_ELEMENTS = 3;
int[] uservals = new int [NUM_ELEMENTS];
}
}
int i;
int sumVal;
userVals [0]
=
userVals [1]
userVals [2] =
Type the program's output
1;
}
sumVal = 0;
for (i = 0; i < userVals.length; ++i) {
sumVal = sumVal +userVals [i];
System.out.println (sumVal);
?
?
園
??
no no no
Transcribed Image Text:public class arrayOutput { public static void main (String[] args) { final int NUM_ELEMENTS = 3; int[] uservals = new int [NUM_ELEMENTS]; } } int i; int sumVal; userVals [0] = userVals [1] userVals [2] = Type the program's output 1; } sumVal = 0; for (i = 0; i < userVals.length; ++i) { sumVal = sumVal +userVals [i]; System.out.println (sumVal); ? ? 園 ?? no no no
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer