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 the main components of the j2ee application?
What are the most important topics in java?
What is java api for xml registries (jaxr)?
What is repaint in java?
What is asant?
What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?
Is class a data type in java?
What is j2ee product provider?
What is application client module?
What is layout manager in java?
Is java part of oracle?
What is external subset?
What is jetty in java?
Is string an object in java?
What is java j2ee developer?