Java Reference
In-Depth Information
The print(java.lang.Object obj) method prints an object. The string produced by the
String.valueOf(Object) method is translated into bytes according to the platform's default
character encoding.
It has one parameter:
java.lang.Object
The println() Method
public void println() throws java.io.IOException
The println() method terminates the current line by writing the line separator string. The line
separator string is defined by the system property line.separator , and is not necessarily a
single newline character (\n). This method has no parameters.
N OTE
The println() method always throws a java.io.IOException exception. It returns no
value.
The println(boolean x) Method
public void println(boolean x) throws java.io.IOException
The println(boolean x) method prints a boolean value and then terminates the line. This
method behaves as though it invokes print(boolean) and then println() .
It has one parameter:
boolean
The println(char x) Method
public void println(char x) throws java.io.IOException
The println(char x) method prints a character and then terminates the line. This method
behaves as though it invokes print(char) and then println() .
It has one parameter:
char
The println(int x) Method
public void println(int x) throws java.io.IOException
The println(int x) method prints an integer and then terminates the line. This method
behaves as though it invokes print(int) and then println() .
Search WWH ::




Custom Search