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 Composition?

1119


How does arraylist work in java?

1174


What are the three best choices for a development environment?

1156


Explain about procedural programming language or structured programming language and its features?

1173


Is it possible to override private or static method in java?

1040


What is the difference between throw and throws keywords?

1097


Is void a data type?

998


Is java a software?

1005


Write a code to show a static variable?

1137


How can an object be unreferenced?

1069


Is linked list a linear or non-linear data structure?

1013


Explain the reason behind ending a program with a system.exit(0)?

1138


What are different types of references?

1027


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1162


Explain about features of local inner class?

1189