Remove newline in the end of println command that shows results