Posted by: blog December 16, 2013
Login in to Rate this Post:
0
?
![](/wysiwyg/editor/images/smiley/msn/thumbs_up.gif)
![10 more flags than likes deactivates post.](/wysiwyg/editor/images/smiley/msn/thumbs_down.gif)
Here you go. try to debug this code to see how it actually works.
public class MyStringTest{
public static void main(String []args){
String str = "ABCDEFGH";
for(int i = str.length()-1; i>=0; i--) {
System.out.print(str.charAt(i));
}
}
}