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 j2ee specification?
What is declaration?
What is actionform?
What is conversational state?
What is tomcat in j2ee?
What do you mean by the deployment descriptor?
What is 'applet container' ?
What is context attribute?
What do you understand by connector?
What is container-managed persistence?
What is java api for xml registries (jaxr)?
Differentiate between .ear, .jar and .war files.
What is the J2EE module?
What is jradiobutton in java?
Difference between save and saveorupdate?