Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to reverse a string?

843785Oct 5 2008 — edited Oct 7 2008
im having trouble reversing a string
String main = "penut";
    System.out.print(main);
   String reverse = "";
    for (int i=0; i<=main.length(); i++) { 
           //reverse
    }
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2008
Added on Oct 5 2008
15 comments
466 views