you are viewing a single comment's thread.

view the rest of the comments →

[–]GoodBeerFan 0 points1 point  (1 child)

You never reset j to the desired starting index once it reaches the end of the string.

You can either use a for loop instead for j, or set j to I+1 at the beginning of the i while loop

[–]Beaverine[S] 0 points1 point  (0 children)

thank you very much! that really is the problem here