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

How do you include a string in java?

936


Which sorting algorithm is in place?

911


Explain about collection interface in java?

942


What are implicit objects in java?

944


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

1046


Explain about member inner classes?

1040


What does exp mean in math?

943


Is it possible to compare various strings with the help of == operator? What are the risks involved?

1033


What are the basic concepts of OOPS in java?

985


Why is the main method static?

1110


What is map java?

927


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

985


Is arraylist ordered?

1014


What does 0 mean in boolean?

937


Explain the access modifiers for a class, method and variables?

1102