Java Reference
In-Depth Information
It has one parameter:
boolean
N OTE
The print() method prints data type values, which are translated into bytes. For all
values, these bytes are written in exactly the same manner as the Writer.write(int)
method.
N OTE
The print() method's parameter is determined by the print value. The method
always throws a java.io.IOException exception. For all print values, the print()
method returns no value.
The print(char c) Method
public void print(char c) throws java.io.IOException
The print(char c) method prints a char value. The character is translated into one or more
bytes according to the platform's default character encoding.
It has one parameter:
char
The print(int i) Method
public void print(int i) throws java.io.IOException
The print(int i) method prints an integer. The string produced by String.valueOf(int) is
translated into bytes according to the platform's default character encoding.
It has one parameter:
int
The print(long l) Method
public void print(long l) throws java.io.IOException
The print(long l) method prints a long. The string produced by String.valueOf(long) is
translated into bytes according to the platform's default character encoding.
Search WWH ::




Custom Search