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 mime in java?
What is an action class in java?
What is custom tag in java?
Where is singleton design pattern used in java?
What is flatmap in java8?
How do I run a project in netbeans?
What if the main method is declared as private?
What is dependency injection in java?
Explain the common use of ejb?
What is the resourcebundle class?
Which method is used to create the daemon thread?
What is a uint8?
can a program use more than one command-line argument?
What is stateful in java?
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