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

How listener identify that the event came from a particular object?

2053


Is a boolean variable?

1065


Does sprintf allocate memory?

1165


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1072


What are the drawbacks for singleton class?

1080


Describe how to implement singleton design pattern in struts.

1070


What is the difference between heap memory and stack memory?

1122


What are the states of thread in java?

1035


What is the syntax and characteristics of a lambda expression? Explain

1093


What is thread count in java?

1056


Write a java program to generate fibonacci series ?

1105


What is stringbuffer in java?

1113


what are the states associated in the thread? : Java thread

1111


Can java program run without jre?

1064


What is loop in java?

1053