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
Difference between save and saveorupdate?
What are the j2ee technologies?
What type of code is java?
What are the four types of J2EE modules?
What is j2ee api?
Is java a web technology?
What is jlayeredpane java?
Why is java considered dynamic?
What is attribute what is asant?
Which server is best for java?
Why is java called technology?
What is devops in java?
What is event and listener in java?
Which is best eclipse for java?
What is java secure socket extension (jsse)?