Bug Hunt: Java
Practice Java expressions, methods, arrays, and object basics.
Your progress
Loading saved progress…
Find the bug
Level 1 of 10
Stay inside the array
This array contains three items. Which condition visits all valid indexes?
int[] values = {4, 5, 6};
for (int i = 0; i <= values.length; i++) {
System.out.println(values[i]);
}