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
What is the difference between the boolean & operator and the && operator?
What does persist mean in java?
How do you check if java is installed on windows command prompt?
How do I create an executable jar file?
What is mdb in java?
What is a context in java?
What is type_scroll_insensitive in java?
What is lambda value?
What's a code group? : java security
What is csrf in java?
can a program use more than one command-line argument?
What is ibatis in java?
What is jpa project?
Is lambda cheaper than ec2?
Who is at risk in java? : java security