How To Reverse Each Word Of A String In Java?
Example : If Input is = “Java” Output should be = “avaj” How?? -> Split the given inputString into words using split() method. Then take each individual word, reverse it and append to reverseString. Finally print reverseString. Java Code :- public class ReverseEachWord { static…