This Java program uses the StringBuilder class to reverse a given string.
public class Reverse { public static void main(String args[]) { //Program to reverse a given string StringBuilder a = new StringBuilder("Tutor Joes Computer Education"); System.out.println(a); StringBuilder b=new StringBuilder(); for(int i=a.length()-1;i>=0;i--) { b.append(a.charAt(i)); } System.out.println(b); } }
Tutor Joes Computer Education noitacudE retupmoC seoJ rotuTTo download raw file Click Here
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions