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

Why local variables are stored in stack?

921


Can a function return a function?

987


What is your platform’s default character encoding?

1016


What are the uses of synchronized keyword?

951


What is java instanceof operator?

984


Which sorting is best in java?

958


What is java in detail?

1023


What is generic type?

977


What is hashtable and explain features of hashtable?

942


What is a variable and constant?

956


What is a parameter in simple terms?

937


Explain the inheritance?

923


How many threads does a core java have?

1000


What is the difference between math floor and math round?

975


Write a program to print all permutations of string?

1065