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
Describe the ear, war, and jar.
What do you understand by j2ee?
What is home handle?
What is ejb module?
Describe secure socket layer (ssl)?
What is archiving?
What do you understand by connector?
What does java awt stand for?
What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?
What is component-managed sign-on ?
What is event and listener in java?
What are j2ee technologies?
Who gave the name java?
How many types of constructors are there in java?
Why is j2ee needed?