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 is mean by connection pooling?
How many types of objects are there in java?
How do I run java?
Is java important for my computer?
What is a j2ee component?
Which software is used for java?
What are different modules in spring?
How do you compile java?
Difference between load and get method?
What is javaserver pages (jsp)?
What is commit?
What is javamail?
What is certificate authority?
What is deployment descriptor?
I Want build and release interview questions