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

Can we clone singleton class in java?

967


What is the difference between conversation & casting?

1060


what is the difference between the methods sleep() and wait()? : Java thread

979


What is the differences between c++ and java? Explain

1060


How do you compare objects in java?

962


what do you mean by classloader in java?

1032


What are assembly attributes?

1013


Does java allow default arguments?

1005


How does map works in java?

1007


Why are arrays useful in java?

1039


what are synchronized methods and synchronized statements? : Java thread

1003


Difference between this() and super() ?

1125


What is definition and declaration?

1029


What is getkey () in java?

1015


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1141