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
Type: Posts; User: andreas90
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
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.
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...