How to print any name or word in Star pattern using for loop in Java by user input.

Published --