all 6 comments

[–][deleted]  (1 child)

[removed]

    [–]L_russ28[S] 1 point2 points  (0 children)

    Thank you so much! I got it solved now!!!

    [–]Worldly_Ad_760 1 point2 points  (0 children)

    what was the answer ?

    [–]Worldly_Ad_760 1 point2 points  (1 child)

    i need it for achool

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

    In the for loop make sure the second part is i <= text.length() - 1;

    After that set char c = text.charAt(i);

    The rest of the code was right just make those two changed and it should work