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 do you understand by connector?
How do you run a java program?
What is java actionlistener?
Is tomcat a java ee?
What is gridlayout in java?
What is j2ee product?
What is layout in java?
What is the build file?
What is java ee server?
whay java does not support bass by reference
What are the technologies a java developer must know?
What is instance in java?
What do you mean by the deployment descriptor?
What is main method in java?
What is ejb container provider?