public abstract class Prompter extends Object
| Constructor and Description |
|---|
Prompter() |
| Modifier and Type | Method and Description |
|---|---|
String |
prompt(String question) |
abstract String |
prompt(String question,
String defaultValue)
Asks a question to the user and asks them to provide a value.
|
abstract String |
promptPassword(String question) |
public abstract String prompt(String question, String defaultValue) throws InterruptedException
question - The string to be shown to the user. Don't add ':', '?' and so on in the end.InterruptedExceptionpublic final String prompt(String question) throws InterruptedException
InterruptedExceptionpublic abstract String promptPassword(String question) throws InterruptedException
InterruptedExceptionCopyright © 2016–2020. All rights reserved.