Search:

Type: Posts; User: dicdic

Search: Search took 0.08 seconds.

  1. Re: Help needed with reversing numbers entered (in Java).

    because of this int input = keyboard.nextInt(); after your loop.
    your loop will ask for 10 input, and after the loop another input will be made because of int input = keyboard.nextInt();

    and as I...
  2. Re: Help needed with reversing numbers entered (in Java).

    base on your code, it would be like this,
    before the loop starts, create integer variable with initial value equal to the length of your numbers array subtracted by 1.
    then, create a loop which...
  3. Re: Help needed with reversing numbers entered (in Java).

    Actually, the array did not reversed. You just print it from its last element to first since you iterate the array from last index and put a print inside the loop.
Results 1 to 3 of 3