That way your loop will print every element in the array with an index >=9. This is because in each iteration it goes to the next index (i++ means that i is incremented by one in each iteration). But...
Type: Posts; User: andreas90
That way your loop will print every element in the array with an index >=9. This is because in each iteration it goes to the next index (i++ means that i is incremented by one in each iteration). But...
Yes, this is the correct syntax for the enhanced for loop.
Hello brandon66!
For task 2, it says it needs an enhanced for loop. Check the java tutorial and an example.
For task 4, since you know how to loop through an array what is the problem you are...