ThoughtsWorks
Programming and Technical
Programming
Print Reverse of words in a sentence.
eg.
i/p=Wish you happy bday
o/p= bday happy you Wish
Read Solution (Total 1)
-
- String s="Wish you happy bday";
String str[]=s.split(" ");
for(int i=str.length()-1;i>=0;i--)
{
System.out.print(str[i]);
System.out.print(" ");
} - 10 years agoHelpfull: Yes(0) No(0)
ThoughtsWorks Other Question