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


Please Help Members By Posting Answers For Below Questions

What is setfocusable in java?

571


What is containers in java?

440


What is application configuration resource file?

508


What is conversational state?

532


What is ebxml?

506






What is assembly in java?

475


What is platform independent in java?

516


What are the components of the java platform?

476


How do I become a java developer?

485


What is java application server?

478


What is jta and jts?

532


What are the components of j2ee?

451


What is a web container j2ee?

490


What is home handle?

525


What is a thin client?

573