View Single Post
  #3 (permalink)  
Old 11-05-2007, 12:38 PM
hiranya hiranya is offline
Member
 
Join Date: Jun 2007
Location: Colombo, Sri Lanka
Posts: 32
hiranya is on a distinguished road
Hi,

Check this out

Code:
public String reverse(String s) { char[] array=s.toCharArray(); String result=""; for (int i=array.length-1; i>=0; i--) { result+=array[i]; } return result; }
Regards,
Hiranya
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote