I think your problem could be with how the Scanner class works. It reads the line when you type in something and press Enter and saves all of it in a buffer, including the end-line character. When...