Hi all,
Quick question for you. I am trying to figure out why the answer to one of the
test certification questions is what it is.
Which statement contains an error?
a. for (i = 0; i < arguments.length & i < 10; i++) {
b. sum += temps[i];
c. System.out.println(�Average: � + (sum / i));
d. None; the program is correct.
Apparently, the answer is "c.". However, I ran the code and even if I fix it according to the solution at:
http://www.cadenhead.org/book/java-21-days/certification.php/7 I still get a NumberFormatException.
Can anybody explain why?
Thanks,
Christopher