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
Is it correct to say that using parentheses can only change?
What is jar file in java?
What is gui in java with examples?
Do I need both jdk and jre?
What are the rules regarding quotation marks?
What are messages in java?
Does ms edge support java?
What is java lang?
What is interceptors in java?
Is java installed on windows 10?
What is jpa used for?
What is a yaml file in java?
What is tight coupling in java?
What are tlds in java?
In system.out.println(), what is system, out and println?