Search:

Type: Posts; User: andreas90

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    3,104

    Re: Help with one-dimensional array

    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...
  2. Replies
    7
    Views
    3,104

    Re: Help with one-dimensional array

    Yes, this is the correct syntax for the enhanced for loop.
  3. Replies
    7
    Views
    3,104

    Re: Help with one-dimensional array

    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...
Results 1 to 3 of 3