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 key in java?

983


Why arraylist is used in java?

1079


Is null keyword in java?

947


What do you mean by flow of struts?

1314


What is Java Shutdown Hook?

1204


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

994


How do you convert int to char in java?

1074


What is the disadvantage of java?

958


What is the purpose of the file class in java programming?

1028


Can a static method be final?

1062


What is meant by the value of a variable?

921


What is supplier in java?

1005


Differences between external iteration and internal iteration?

1170


What is the purpose of the main method?

993


What will happen if a thrown exception is not handled?

1023