Sunday 10 March 2013

print(char)


print(char)

Declaration:
public void print(char c)
Description:
Print a character. The character is translated into one or more bytes according to the platform’s default
character encoding, and these bytes are written in exactly the manner of the write(int) method.
Parameters:
c - The char to be printed
print(int)
Declaration:
public void print(int i)
Description:
Print an integer. The string produced by java.lang.String.valueOf(int) is translated into bytes
according to the platform’s default character encoding, and these bytes are written in exactly the manner of
the write(int) method.
Parameters:
i - The int to be printed
See Also: java.lang.Integer.toString(int)
print(long)
Declaration:
public void print(long l)
Description:
Print a long integer. The string produced by java.lang.String.valueOf(long) is translated into
bytes according to the platform’s default character encoding, and these bytes are written in exactly the
manner of the write(int) method.
Parameters:
l - The long to be printed

print(float)
Declaration:
public void print(float f)
Description:
Print a floating point number. The string produced by java.lang.String.valueOf(float) is
translated into bytes according to the platform’s default character encoding, and these bytes are written in
exactly the manner of the write(int) method.
Parameters:
f - The float to be printed
Since: CLDC 1.1
See Also: java.lang.Float.toString(float)
print(double)
Declaration:
public void print(double d)
Description:
Print a double-precision floating point number. The string produced by
java.lang.String.valueOf(double) is translated into bytes according to the platform’s default
character encoding, and these bytes are written in exactly the manner of the write(int) method.
Parameters:
d - The double to be printed
Since: CLDC 1.1
See Also: java.lang.Double.toString(double)

print(char[])
Declaration:
public void print(char[] s)
Description:
Print an array of characters. The characters are converted into bytes according to the platform’s default
character encoding, and these bytes are written in exactly the manner of the write(int) method.
Parameters:
s - The array of chars to be printed
Throws:
java.lang.NullPointerException - If s is null
print(String)
Declaration:
public void print(java.lang.String s)

print(Object)
70
Description:
Print a string. If the argument is null then the string “null” is printed. Otherwise, the string’s characters
are converted into bytes according to the platform’s default character encoding, and these bytes are written
in exactly the manner of the write(int) method.
Parameters:
s - The String to be printed
print(Object)
Declaration:
public void print(java.lang.Object obj)
Description:
Print an object. The string produced by the java.lang.String.valueOf(Object) method is
translated into bytes according to the platform’s default character encoding, and these bytes are written in
exactly the manner of the write(int) method.
Parameters:
obj - The Object to be printed
See Also: java.lang.Object.toString()
println()
Declaration:
public void println()
Description:
Terminate 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').
println(boolean)
Declaration:
public void println(boolean x)
Description:
Print a boolean and then terminate the line. This method behaves as though it invokes print(boolean)
and then println().

Parameters:
x - The boolean to be printed
println(char)
Declaration:
public void println(char x)
Description:
Print a character and then terminate the line. This method behaves as though it invokes print(char) and
then println().
Parameters:
x - The char to be printed.





No comments:

Post a Comment