System.out.println( "Enter the name of the substitute yarn. ");
//String Input( Substitute name)
String newName = keyboard.nextLine();
//Enter Number of yards per ball ( New Name)
System.out.println( "Enter the number of yards per ball of " + newName);
When I run this the code skips the String newName = keyboard.nextLine(); code and skips to the next system output.
Please explain why.