Search:

Type: Posts; User: av8

Search: Search took 0.10 seconds.

  1. Thread: Array Problem

    by av8
    Replies
    4
    Views
    1,492

    Re: Array Problem

    I get the required output.

    Thank you Norm.

    av8
  2. Thread: Array Problem

    by av8
    Replies
    4
    Views
    1,492

    Re: Array Problem

    The value of the index was not given in the error. The penny dropped with the maximum index of the array.length - 1 ,as the first index is 0. Thankyou.

    for(int i = 0; i < oddNumbers.length...
  3. Thread: Array Problem

    by av8
    Replies
    4
    Views
    1,492

    Array Problem

    int [] oddNumbers = {1,3,5,7,9};


    oddNumbers[0]=oddNumbers[1];
    oddNumbers[1]=oddNumbers[2];
    oddNumbers[2]=oddNumbers[3];
    oddNumbers[3]=oddNumbers[4];

    This would...
Results 1 to 3 of 3