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 does @override mean in java?
Do I need to install jre if I have jdk?
Can java program run without jdk?
I am trying to create a new universal user group. Why can't i? : java security
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
What is stateless object in java?
How do I open my java console?
Does ms edge support java?
can a program use more than one command-line argument?
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
I run a web server. Am I at risk? : java security
What is phantom memory?
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
Is openjdk the same as jdk?
What is a delimiter in java?