public class NUtil
extends java.lang.Object
| Constructor and Description |
|---|
NUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Test Driver
|
static java.lang.String |
readLine()
Reads a line of text.
|
static java.lang.String |
readLine(java.lang.String prompt)
Reads a line of text after displaying the given prompt message.
|
static java.lang.String |
readLine(java.lang.String prompt, boolean trim)
Reads a line of text after displaying the given prompt message.
|
static java.lang.String |
readLineNoEcho()
Reads a line of text without echoing on terminal.
|
static java.lang.String |
readLineNoEcho(java.lang.String prompt)
Reads a line of text without echoing on terminal, after displaying the given prompt message.
|
static java.lang.String |
readLineNoEcho(java.lang.String prompt, boolean trim)
Reads a line of text without echoing on terminal, after displaying the given prompt message.
|
public static java.lang.String readLineNoEcho()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
public static java.lang.String readLineNoEcho(java.lang.String prompt)
throws java.io.IOException
prompt - the message to be printed on the termial.java.io.IOException - If an I/O error occurs.
public static java.lang.String readLineNoEcho(java.lang.String prompt,
boolean trim)
throws java.io.IOException
prompt - the message to be printed on the termial.trim - if true whitespaces on either side will be trimmed.java.io.IOException - If an I/O error occurs.
public static java.lang.String readLine()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
public static java.lang.String readLine(java.lang.String prompt)
throws java.io.IOException
prompt - the message to be printed on the termial.java.io.IOException - If an I/O error occurs.
public static java.lang.String readLine(java.lang.String prompt,
boolean trim)
throws java.io.IOException
prompt - the message to be printed on the termial.trim - if true whitespaces on either side will be trimmed.java.io.IOException - If an I/O error occurs.
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException