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 is substring 1 in java?

1055


What are the two ways of implementing multi-threading in java?

1414


What is the purpose of using break in each case of switch statement?

955


What is package protected in java?

913


What is regex in java?

899


What is int short for?

958


Explain the difference between jdk, jre, and jvm?

992


What are different data structures in java?

963


Explain abstract class in java?

983


What is a singleton in genetics?

998


What are user defined exceptions?

960


How does arrays sort work in java?

956


Is string is a data type?

903


What language is pass by reference?

968


Explain java coding standards for constants?

948