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 ? | 0 Yes | 0 No |
What about 'hostile applets'? : java security
how ahstraction is the property of oops,this is also in c and c++ ex. printf function which is also hide the unnecessary data,so what is the difference ? and does c++ fallow the abstraction?
Is java installed on windows 10?
Describe life cycle of thread?
What is predicate in lambda expression?
What is servlets.
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 a delimiter in java?
What is the difference between Enumeration and Iteration interfaces? What is the way of to retreive the objects from these interfaces ?
Where is java installed?
What is a bean class?
Which is the best book for whole java study?