Solved [JAVA] Read the input one line at a time and output | Chegg.com

Solved [JAVA] Read the input one line at a time and output | Chegg.com