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?
Answers were Sorted based on User's Feedback
Answer / neeraj03
String[] x1=s.split(" ");
for( int x2=x1.length-1; x2 >= 0; x2-- )
{
System.out.print( x1[x2] );
System.out.print( " ");
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
What is the use of flatmap?
What is meant by rest api in java?
Expain ur organisation process( V-model)?.
What is loose coupling in java?
What is dependency injection in java?
What is transactional in java?
What is an api in java?
write a code in jsp to swap two numbers?
What is javax annotation generated?
If one class havent the constructor, it has normal method, then can i use super keyword to call the method form the sub class and vice verse?
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
What is jboss in java?