Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 j2ee specification?

848


What is declaration?

908


What is actionform?

899


What is conversational state?

908


What is tomcat in j2ee?

817


What do you mean by the deployment descriptor?

933


What is 'applet container' ?

955


What is context attribute?

934


What do you understand by connector?

852


What is container-managed persistence?

943


What is java api for xml registries (jaxr)?

960


Differentiate between .ear, .jar and .war files.

1043


What is the J2EE module?

969


What is jradiobutton in java?

859


Difference between save and saveorupdate?

920