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 jdk for netbeans ide?
What is gui in java with examples?
What is injection in java?
Why struts framework is used in java?
What is serializable in java?
What happens when you omit a brace or misspell one of the words, like public or
What is http session in java?
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
What is meant by java se?
What is a yaml file in java?
What is the point of lambda expressions?
Is java singleton thread safe?
What is meant by annotation in java?
Can we install jre without jdk?
Can the main method be declared final?