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...

suppose we have one String s="india is my country"; now we
get the o/p "like country my is India". what is the logic?

Answer Posted / naresh

String s="india is my country";
String[] news=s.split(" ");
StringBuffer sb="";
for(int i=0;i<s.length;i++){
sb.append(s[i]);
sb.append(" ");

}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mime in java?

890


What is an action class in java?

997


What is custom tag in java?

892


Where is singleton design pattern used in java?

908


What is flatmap in java8?

957


How do I run a project in netbeans?

905


What if the main method is declared as private?

865


What is dependency injection in java?

871


Explain the common use of ejb?

1080


What is the resourcebundle class?

898


Which method is used to create the daemon thread?

935


What is a uint8?

949


can a program use more than one command-line argument?

940


What is stateful in java?

955


when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution

1852