Program to reverse each word in a sentence

September
2

Posted By:pradeeshtet

Comments:
0

Simple java program to reverse each word in a sentence, not the whole sentence. This type question are also asked in technical round of top company's interview. Here is the solution and explanation. Explanation- 1st the sentence will be split into words, then each word is reversed, after that nextword will be processed.