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 / haneef

public class Main {
public static void main(String[] args)
{
String str1="HANEEF";
for(int i=str1.length();i>0;i--)
{
System.out.print(str1.charAt(i-1));
}
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are abstract methods in java?

1116


Is java platform independent?

970


What is consumer in java?

963


What is stringbuffer in java?

1056


What is the basic concepts of OOPS?

1190


What is the purpose of the return statement?

1039


What is the use of join method?

1026


What is a jagged array in java?

1103


What is string immutability?

1098


What is module with example?

1000


Explain about data types?

1077


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1101


What is the final field modifier?

968


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9204


Is constructor inherited?

956