FileDocCategorySizeDatePackage
Prompt2.javaAPI DocExample357Tue Dec 12 18:58:28 GMT 2000None

Prompt2

public class Prompt2 extends Object

Fields Summary
Constructors Summary
Methods Summary
private native java.lang.StringgetLine(java.lang.String prompt)

private native java.lang.StringgetLine(java.lang.String prompt, int length)

public static voidmain(java.lang.String[] args)

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