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
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
How can c# app request minimum permissions? : java security
What is the java virtual machine (jvm)?
What does persist mean in java?
What are java’s rules regarding tabs, spaces and newline characters?
What are anonymous methods and lambda expression?
What about 'hostile applets'? : java security
Why struts framework is used in java?
How do javabeans work?
What are jpa annotations?
What is @resource annotation in java?
What is meant by code profiling?
What is java api?
Why doesn’t the main method throw an error with no arguments?
If you’re overriding the method equals() of an object, which other method you might also consider?