Hi,
This is killing me, I wrote an extremely simple program to test a much larger issue, but I can't even get the small program correct! Any help would be appreciated.
The program compiles, but when run it skips the last "String job = keyboard.nextLine()" and terminates without accepting inpute. Any ideas? Have I been at this so long I am just overlooking something very simple?
import java.util.Scanner;
public class Testing
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
System.out.println("Name:");
String name = keyboard.nextLine();
System.out.println("Age:");
int age = keyboard.nextInt();
System.out.println("Job");
String job = keyboard.nextLine();
}
}