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 the difference between the boolean & operator and the && operator?

954


What does persist mean in java?

989


How do you check if java is installed on windows command prompt?

918


How do I create an executable jar file?

1082


What is mdb in java?

903


What is a context in java?

861


What is type_scroll_insensitive in java?

914


What is lambda value?

945


What's a code group? : java security

934


What is csrf in java?

973


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

957


What is ibatis in java?

963


What is jpa project?

887


Is lambda cheaper than ec2?

928


Who is at risk in java? : java security

954