Java Reference
In-Depth Information
It has one parameter:
•
int
The
println(long x)
Method
public void println(long x) throws java.io.IOException
The
println(long x)
method prints a long integer and then terminates the line. This method
behaves as though it invokes
print(long)
and then
println()
.
It has one parameter:
•
long
The
println(float x)
Method
public void println(float x) throws java.io.IOException
The
println(float x)
method prints a float and then terminates the line. This method
behaves as though it invokes
print(float)
and then
println()
.
It has one parameter:
D
•
float
The
println(double x)
Method
public void println(double x) throws java.io.IOException
The
println(double x)
method prints a double-precision floating-point number and then ter-
minates the line. This method behaves as though it invokes
print(double)
and then
println()
.
It has one parameter:
•
double
The
println(char[] x)
Method
public void println(char[] x) throws java.io.IOException
The
println(char[] x)
method prints an array of characters and then terminates the line.
This method behaves as though it invokes
print(char[])
and then
println()
.
It has one parameter:
•
char[]
The
println(java.lang.String x)
Method
public void println(java.lang.String x) throws java.io.IOException