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

Which is better arraylist or vector?

1012


Implementations of set interface?

996


What is the method overriding?

1080


What is the difference between a static and a non-static inner class in java programming?

1059


Explain spliterator in java8?

1039


What is the synonym of string?

1084


What is the internal implementation of set in java?

913


Is there is any difference between a scrollbar and a scrollpane?

984


How do you get the length of a string in java?

986


What is a Hash Table? What are the advantages of using a hash table?

1077


What are pass by reference and pass by value?

983


Explain when classnotfoundexception will be raised ?

1033


Can we sort hashmap in java?

949


Why are global variables used?

1009


What is the use of flag?

1069