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

Why can't we use static class instead of singleton?

994


What is the difference between double and float variables in java?

1198


What are synchronized blocks in java?

1272


Which of the classes will have more memory allocated?

1019


Write a program in java to establish a connection between client and server?

1016


How to check if a list is sorted in java?

1086


How static variable work in java?

1188


What is the purpose of the system class in java programming?

1181


What is the class in java?

1058


Why is string buffer better than string ?

1193


What is null data type?

1183


What is the effect of keeping a constructor private?

999


What does business logic mean?

1048


Can an interface be defined inside a class?

1106


What is the tradeoff between using an unordered array versus an ordered array?

1288