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 / 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 |
Post New Answer View All Answers
What is the difference between collection and stream?
Are streams faster than for loops?
Which version of jdk is required for netbeans 8.0 2?
What is the means of java?
can anyone tell me what kind of questions are asked for core java exam in aptech
What is jndi datasource in java?
How do I open the java console in windows 10?
ioc vs dependency injection?
What is gui in java with examples?
What is a flatmap?
How can you work with permissions from your .net application? : java security
What is jdk for netbeans ide?
What services can invoke lambda?
How can I swap two variables without using a third variable?
What is the use of rs next () in java?