|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsugar.Sys
public class Sys
This class enables simple data entry from console ( System.in ) for Strings, double and integer numbers.
Constructor Summary | |
---|---|
Sys()
|
Method Summary | |
---|---|
static boolean |
askStop(java.lang.String query)
The method reads one input line. |
static java.lang.String |
getByeMsg()
Gets end of input message. |
static double |
getDouble(java.lang.String s)
The method reads one number from string. |
static boolean |
getEnd()
The method gives end status. |
static boolean |
getError()
Indicates whether error condition is raised and reset it to false. |
static java.lang.String |
getLast()
Get last processed element. |
static java.lang.String |
getState()
|
static void |
main(java.lang.String[] args)
|
static void |
p(boolean b)
Print overloaded methods |
static void |
p(double d)
|
static void |
p(double d,
int fract)
|
static void |
p(float f)
|
static void |
p(char c)
|
static void |
p(char[] s)
|
static void |
p(int i)
|
static void |
p(long l)
|
static void |
p(java.lang.Object o)
|
static void |
p(java.lang.String s)
|
static void |
pln()
Print next line overloaded methods |
static void |
pln(boolean b)
|
static void |
pln(double d)
|
static void |
pln(double d,
int fract)
|
static void |
pln(float f)
|
static void |
pln(char c)
|
static void |
pln(char[] s)
|
static void |
pln(int i)
|
static void |
pln(long l)
|
static void |
pln(java.lang.Object o)
|
static void |
pln(java.lang.String s)
|
static double |
readDouble()
The method reads one number in one input line. |
static char |
readChar()
Read one character |
static int |
readInt()
The method reads one number in one input line. |
static java.lang.String |
readLine()
The method reads one input line. |
static java.lang.String |
readWord()
Read one word ie. continuous sequence of letters |
static void |
setByeMsg(java.lang.String msg)
Sets end of input message. |
static void |
setEnd(boolean e)
The method sets end status. |
static void |
setInputData(java.lang.String s)
|
static void |
sleep(long msec)
Sleeps program for msec milisecond |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sys()
Method Detail |
---|
public static java.lang.String readWord()
public static char readChar()
public static java.lang.String readLine()
public static double readDouble()
public static int readInt()
public static void p(boolean b)
public static void p(char c)
public static void p(char[] s)
public static void p(double d)
public static void p(float f)
public static void p(int i)
public static void p(long l)
public static void p(java.lang.Object o)
public static void p(double d, int fract)
public static void p(java.lang.String s)
public static void pln()
public static void pln(boolean b)
public static void pln(char c)
public static void pln(char[] s)
public static void pln(double d)
public static void pln(float f)
public static void pln(int i)
public static void pln(long l)
public static void pln(java.lang.Object o)
public static void pln(double d, int fract)
public static void pln(java.lang.String s)
public static void sleep(long msec)
public static void setInputData(java.lang.String s)
public static java.lang.String getState()
public static void setByeMsg(java.lang.String msg)
msg
- - the ending message.public static java.lang.String getByeMsg()
public static java.lang.String getLast()
public static boolean getError()
public static boolean getEnd()
public static void setEnd(boolean e)
false
- or true.public static boolean askStop(java.lang.String query)
query
- message to user to stop input.
public static double getDouble(java.lang.String s)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |