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

How can you reverse a string?

Answer Posted / venki from hyd

class ReverseString
{
static String name="Hello";
public static void main(String args[])
{
String rname;
for(int i=name.length(); i<0; i--)
{
rname=name.charAt(i);

}
System.out.println(rname);

}

}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean law?

1140


How to sort double array in java?

1042


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

2394


What is a instance variable?

1141


Can an interface be final?

1084


Is it possible to instantiate the abstract class?

1010


What are the rules for naming an array?

1110


What is difference between public static and void?

1082


What are abstract classes and anonymous classes?

1140


What does I ++ mean?

1125


What is externalizable interface?

1149


What is a double vs float?

1073


What is an enumeration?

1124


What are the default and parameterized constructors?

1110


How to perform bubble sort in java?

1057