Java program to print the initial letters of the words present in the String

(135 Views)

This Java program accepts a String from the user and then prints a new String containing the initial letters of the words present in the String which is separated by a dot(.) For Example - Input: We love JavaOutput: W.l.J.