Write a program to display numeric value in reverse order.
Ex: I have given a number like 7584, It should display in
reverse order like 4857.
Answer Posted / pradyumna
public class Test1 {
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("1234");
System.out.println(s1);
s1.reverse();
System.out.println(s1);
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are different modules in spring?
What is java used for in technology?
Why do we use j2ee?
What is application client container?
What is initialization parameter?
What is document?
How do I become an expert in java?
What is difference between javac and java?
What is tomcat in j2ee?
What are the main components of the j2ee application?
What should a junior java developer know?
What is full form of j2ee?
What is enterprise information system resource?
What are the advantages of object-relational mapping (orm)?
What is event handling in java?