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...

can you program for reverse string?

Answer Posted / suresh

class suresh
{
public static void main(String args[])
{
String s="sureshreddy";
for(i=s.length()-1;i>=0;i--)
{
System.out.println(s.charAt(i));
System.out.println(s.length());//it wil print the length
}
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right data type to represent a price in java?

917


What is meant by design patterns?

985


what is meant by abstract class?

1073


What about static nested classes in java?

1083


What is import java util arraylist?

1122


How does multithreading take place on a computer with a single cpu?

962


Implement a stack with push (), pop() and min() in O(1) time.

1048


Does string is thread-safe in java?

1035


what is meant by HQL?

1019


Difference between this() and super() ?

1029


Where import statement is used in a java program?

1092


Why generics are used in java?

973


Where are variables stored?

923


What is javac used for?

894


What does g mean in regex?

946