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 are heterogeneous objects?

977


What is stack explain?

929


What are the java ide's? Explain

963


Why do we need hashmap in java?

1027


What is final?

1003


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

923


What does flagged out mean?

1001


What are the advantages of encapsulation in java?

955


Explain the importance of import keyword in java?

940


What is java oops?

995


Variables used in a switch statement can be used with which datatypes?

933


How will you invoke any external process in java?

1046


difference between byte stream class and character stream class?

4484


Explain access modifiers in java.

969


What is a pattern what is an anti pattern?

890