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

Explain spliterator in java8?

1039


What is the tradeoff between using an unordered array versus an ordered array?

1222


What are static initalizers in java ?

1006


What is static synchronization?

1099


what is thread? What are the high-level thread states? : Java thread

1270


What are untrusted applets?

1131


What mechanism does java use for memory management?

968


What is the super void?

895


What is a type parameter in java?

986


In the below example, what will be the output?

1019


Explain the transient field modifier?

1027


Explain about collection interface in java?

982


Are functions objects in java?

1064


What are the limitations of procedural programming approach?

1042


What is complexity in java?

1012