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
What is the locale class?
What is the java api?
Can we extract main method from another class?
How does java handle integer overflows and underflows?
What do you understand by casting in java language? What are the types of casting?
Are jvm’s platform independent?
what is reflection api? How are they implemented?
What if I write static public void instead of public static void?
What is the first argument of the string array in main method?
What is the resourcebundle class?