Clear the input buffer before reading the nextLine, nexInt leaves a \n character in the buffer. Meaning that when you do nextLine no input is read from the user and an empty String is returned thus,...
Type: Posts; User: Freaky Chris
Clear the input buffer before reading the nextLine, nexInt leaves a \n character in the buffer. Meaning that when you do nextLine no input is read from the user and an empty String is returned thus,...
Whats the runtime error?