Changed System.out.print("\n") into System.out.println() on line 29