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 tree in java?

920


Why is stringbuffer not immutable?

1082


How can I debug the Java security exceptions and AccessControlExceptions?

1153


Can this keyword be used to refer static members?

1027


What is cr keyboard?

1263


What are different types of multitasking?

960


What is meant by call by reference?

1009


What is memory leak and how does java handle it?

985


What is consumer in java?

977


What does exp mean in math?

991


Can a source file contain more than one class declaration?

997


What is parsing and its types?

1110


Does every java program need a main?

1000


When can an object reference be cast to an interface reference in java programming?

1025


what is session in java?

1249