<div style='background-color: none transparent;'></div>
Home » » Reverse the characters of a given string

Reverse the characters of a given string

Reverse the characters of a given string




public class Temp {

public static void main(String[] args) {

String a = "Hello Java Galaxy";
System.out.println("
Original string: " + a);

StringBuffer b = new StringBuffer(a).reverse();
System.out.println("Reverse character string: " + b);

System.out.println("
");

}

}
Share this article :
 
Copyright © 2011. B.Sc B.Tech MCA Ploytechnic Mini,Main Projects | Free Main Projcets Download | MCA |B.tech . All Rights Reserved
Company Info | Contact Us | Privacy policy | Term of use | Widget | Advertise with Us | Site map
Template Modify by Creating Website. Inpire by Darkmatter Rockettheme Proudly powered by Blogger