1. What is the scope of the variable counter in Segment 13.6?
2. Write a for-each statement to display each color in the following enumeration as a string on a separate line:
enum BasicColor {RED, BLUE, GREEN}
3. What output is displayed by the following code?
for (double sample = 2; sample > 0; sample = sample - 0.5)
System.out.println(sample + " ");
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here