Search:

Type: Posts; User: andreas90

Search: Search took 0.12 seconds.

  1. Replies
    15
    Views
    10,578

    [SOLVED] Re: How To Increment Array Elements

    You are welcome. But i don't think that your last posted code does what you wanted it to do. If you have updated it just ignore me. :P
  2. Replies
    15
    Views
    10,578

    [SOLVED] Re: How To Increment Array Elements

    It displays your String backwards because of the outer for loop's header. Try modifying it so that it loops through line from 0 to line.length() and increment pos.
  3. Replies
    15
    Views
    10,578

    [SOLVED] Re: How To Increment Array Elements

    Hello Nuggets!
    I think you are close to getting it work properly too. You should put first your if statement and then in your else block do the assignment alphabet[i] = alphabet[i+1] and print...
Results 1 to 3 of 3