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
How many types of component events are in java?
What spring is in related to j2ee?
What is a java ee container?
What are types of j2ee clients?
What is j2ee product?
you are to choose between two procedures,both of which copute the minimum value in an array of integers.one procedure returns the smallest integer if its array argument is empty. the other requires a nonempty array.which procedure should you choose and why?
What is build file?
What is java used for in technology?
What is form-based authentication?
What are the most important topics in java?
What is interpreter in java?
How is java development environment setup?
What are j2ee components?
What is non primitive data type in java?
Is j2ee and jee same?