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

Explain throw keyword in java?

1033


Which programming language is most secure?

974


What language is an assembler written in?

981


Can we override final method?

986


Name few java util classes introduced with java 8 ?

901


What is object data type?

986


What is substring in java?

1189


What is synchronization and why is it important in java programming?

919


What are computer functions?

929


Is heap stored in ram?

944


Is Java a dying language?

1062


State the merge-sort principle and its time complexity.

966


Can we force the garbage collection to run?

933


Can vector have duplicates in java?

926


Why is java so popular?

1094