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 / deepak
public class A
{
public static void main(String str[])
{
String s="7584";
System.out.println(s);
s.reverse();
System.out.println(s);
}}
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What are the topics in j2ee?
What is deployment descriptor?
What are j2ee technologies?
Is java gui dead?
What is java 2 platform, micro edition (j2me)?
What is j2ee server?
Why java is a platform?
Is core java and j2se same?
what is interface in java ?can you explain with simple example?and what is the difference between abstract and interface?
What is group?
What is actionerrors?
What is ejb module?
Is class a data type in java?
What is isv?
public class ActionSearchBean extends
GenericSearchBean