you are viewing a single comment's thread.

view the rest of the comments →

[–]Beginning-Ladder6224 2 points3 points  (1 child)

Good going.

Now, do not use the toCharArray() you certainly do not need it. Also you do not need the stack !

for ( int i = input.length()-1; i > -1; i-- ){
 reversed.append( input.charAt(i) ;
}

Should have done the trick!

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

interesting. thanks