Can you have an ArrayList of ints?
The following for-each loop was used in the method showDifference in
Display 14.3. Rewrite it as an ordinary for loop. This should help you to see
how much cleaner it is to use a for-each loop.
for (Double element : a)
System.out.println(element + " differs from average by "
+ (element – average));
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here