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

How can we create an immutable class in java?

1077


which pattern is default in scanner package?

2243


What will be the output of round(3.7) and ceil(3.7)?

1121


What is super in java?

1006


What is data member in java?

1068


Can we define private and protected modifiers for variables in interfaces?

1095


How do you sort a list in java?

1045


Does java runtime require a license?

1081


How to change the priority of thread or how to set the priority of thread?

1047


What is a method signature java?

1061


Can we compare two strings in java?

1032


How can you make a class serializable in java?

1003


Difference between process and thread?

1045


What do you mean by append?

1082


What is substring in java?

1237