|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--java.io.PrintWriter | +--sheffield.EasyWriter
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
EasyWriter()
Create a new EasyWriter that writes to standard output |
|
EasyWriter(java.lang.String s)
Create a new EasyWriter that writes to a text file |
Method Summary | |
void |
print(double x,
int n)
Print a double with a specified precision |
void |
print(double x,
int n,
int w)
Print a double with a specified precision and field width |
void |
print(float x,
int n)
Print a float with a specified precision |
void |
print(float x,
int n,
int w)
Print a float with a specified precision and field width |
void |
print(int x,
int n)
Print an int within a specified field width |
void |
print(long x,
int n)
Print a long within a specified field width |
void |
print(short x,
int n)
Print a short within a specified field width |
void |
println(double x,
int n)
Println a double with a specified precision |
void |
println(double x,
int n,
int w)
Println a double with a specified precision and field width |
void |
println(float x,
int n)
Println a float with a specified precision |
void |
println(float x,
int n,
int w)
Println a float with a specified precision and field width |
void |
println(int x,
int n)
Println an int within a specified field width |
void |
println(long x,
int n)
Println a long within a specified field width |
void |
println(short x,
int n)
Println a short within a specified field width |
void |
prompt(java.lang.String p)
|
Methods inherited from class java.io.PrintWriter |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EasyWriter()
public EasyWriter(java.lang.String s)
s
- the name of the text fileMethod Detail |
public void prompt(java.lang.String p)
public void println(int x, int n)
x
- the number to printlnn
- the field widthpublic void print(int x, int n)
x
- the number to printn
- the field widthpublic void println(long x, int n)
x
- the number to printlnn
- the field widthpublic void print(long x, int n)
x
- the number to printn
- the field widthpublic void println(short x, int n)
x
- the number to printlnn
- the field widthpublic void print(short x, int n)
x
- the number to printn
- the field widthpublic void print(double x, int n)
x
- the number to printn
- the number of decimal placespublic void println(double x, int n)
x
- the number to printlnn
- the number of decimal placespublic void print(double x, int n, int w)
x
- the number to printn
- the number of decimal placesw
- the field widthpublic void println(double x, int n, int w)
x
- the number to printlnn
- the number of decimal placesw
- the field widthpublic void print(float x, int n)
x
- the number to printn
- the number of decimal placespublic void println(float x, int n)
x
- the number to printlnn
- the number of decimal placespublic void print(float x, int n, int w)
x
- the number to printn
- the number of decimal placesw
- the field widthpublic void println(float x, int n, int w)
x
- the number to printlnn
- the number of decimal placesw
- the field width
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |