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 static and final keyword in java?

1026


What does sprintf return?

1067


Give few examples of final classes defined in Java API?

1205


What data type is true or false?

1047


give an example for encapsulation?

1050


What does percent mean in java?

1031


What occurs when an object is constructed?

1008


What is the difference between procedural and object-oriented programs?

974


Should a main method be compulsorily declared in all java classes?

1071


Is arraylist sorted in java?

1008


What is java life cycle?

1011


Explain the difference between the public, private, final, protected, and default modifiers?

1045


What is the size of int?

1085


Can a class with private constructor be extended?

948


How do you compare values in java?

1031