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 / raj

public static void main (String args[])
{ String s1="1234567";

for(int i=s1.length()-1;i>=0;i--)
{
System.out.print(s1.charAt(i));
}
}

Is This Answer Correct ?    25 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton class? Give a practical example of its usage.

1114


Explain the available thread states in a high-level?

985


What is stringwriter?

967


How do you remove all elements from an arraylist in java?

1044


What is the difference between conversation & casting?

1066


java Technical questions asked by JPMC

5101


Why main method is called first in java?

1019


How big is a gigabyte?

1055


What are different ways of object creation in java ?

1091


Can we serialize static variables in java?

1109


Define inheritance?

1024


What is anagram of a string?

958


What are selection structures?

1010


How can we create an immutable class in java?

1078


Is java a security risk?

1054