can you program for reverse string?

Answer Posted / suswagata choudhury

public class Reverse {
public static void main(String args[]){

String s="SUSWAGATA";
StringBuffer sb=new StringBuffer(s);
System.out.println(sb.reverse());
}
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run java on windows?

800


When do we need to use internal iteration? When do we need to use external iteration?

858


How do you add an arraylist to an array in java?

752


Is set sorted in java?

717


What is the structure of java?

773


Is list thread safe in java?

724


What about abstract classes in java?

846


Can we declare a static variable inside a method?

765


What is difference between final and immutable?

804


What do you mean by an object in java?

891


What are different access specifiers in java?

770


What is the difference between a synchronized method and a synchronized block?

884


How many boolean functions are there?

755


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1648


How do you stop a thread in java?

838