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

What is a instance variable?

1016


what is object slice?

2013


What are abstract classes and anonymous classes?

1030


Define nashorn in java8.

987


What is singleton class example?

975


What is entry in java?

976


Can you access the private method from outside the class?

916


What is volatile keyword in java

1077


What is a java developer salary?

924


What is array length in java?

918


What is public static void main?

1052


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1182


Explain different ways of creating a thread. Which one would you prefer and why?

991


Can a static method be overridden in java?

972


Is 0 true or false?

958