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...

can you program for reverse string?

Answer Posted / indumathi

public class StringReverseExample {

public static void main(String[] args)
{
String string=args[0];
String reverse = new StringBuffer
(string).reverse().toString();
System.out.println("\nString before
reverse:"+string);
System.out.println("String after
reverse:"+reverse);
}


}

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List down the methods and interfaces of collection class in java.

984


What is the purpose of encapsulation?

1017


What is locale?

1032


What's the purpose of using break in each case of switch statement?

983


Can we overload the main() method?

1043


What is collection sort in java?

945


What is int argc char * argv?

1162


What is java util function?

1099


Can we override constructors in java?

1142


What is autoboxing and unboxing?

1005


Why we use methods in java?

997


Explain the difference between call by refrence and call by value?

1022


Is array serializable java?

984


What is a flag variable?

972


if u open login & logout ,how can udisplay the timelogin & logout members ?

2285