Something could go wrong with the following code. Identify and fix the
problem.
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter your age.");
int age = keyboard.nextInt();
System.out.println("Enter your name.");
String name = keyboard.nextLine();
System.out.println(name + ",you are " + age + " years old.");
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here