Prompt2 p = new Prompt2(); String input = p.getLine("Type a line: "); System.out.println("User typed: " + input);