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 is build file?
What is the difference between load() and get()?
Which software is used for java?
What are the different types of events in java?
What is j2ee tutorial?
What is j2ee api?
Why is java more secure?
What are j2ee components?
What is context attribute?
How do I become a java developer?
I Want build and release interview questions
What is pure java?
What is mean by j2ee?
What is jaxr provider?
What is delegation?