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

public class reverse {
public static void main(String args[]){

String s="malayalam";
StringBuffer sb=new StringBuffer();
int k=s.length();
for (int i = k-1; i >-1; i--) {
sb.append(s.charAt(i));

}
System.out.println(sb);
}

}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is OOP Language?

1075


What is the covariant return type?

1100


What is visibility mode?

969


What are synchronized blocks in java?

1182


What is module with example?

1014


what r advatages of websphere? & how to deploy?

2196


what is meant wrapper classes?

1208


What is Java Reflection API? Why it’s so important to have?

1165


I don’t want my class to be inherited by any other class. What should I do?

1015


What do you mean by constructor?

982


What is the hashcode () and equals () used for?

1038


List two java ide’s?

1049


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

985


What are computer functions?

946


When is the finalize() called? What is the purpose of finalization?

1080