java.io
Class PrintStream
- java.lang.Object
-
- java.io.PrintStream
-
public class PrintStream extends Object
-
-
Constructor Summary
Constructors Constructor and Description PrintStream()
-
Method Summary
Methods Modifier and Type Method and Description void
print(boolean value)
print out a boolean valuevoid
print(byte value)
print out a byte valuevoid
print(char c)
print out a charactervoid
print(int value)
print out an int valuevoid
print(short value)
print out a short valuevoid
print(String value)
print out a stringvoid
println()
print out an empty string and then terminate the linevoid
println(boolean value)
print out a boolean value and then terminate the linevoid
println(byte value)
print out a byte and then terminate the linevoid
println(char c)
print out a character and then terminate the linevoid
println(int value)
print out an int value and then terminate the linevoid
println(long value)
print out a long and then terminate the linevoid
println(Object obj)
print out an object's string description and then terminate the linevoid
println(short value)
print out a short value and then terminate the linevoid
println(String value)
print out a string and then terminate the line
-
-
-
Method Detail
-
println
public void println()
print out an empty string and then terminate the line
-
println
public void println(Object obj)
print out an object's string description and then terminate the line- Parameters:
obj
- the object that will be print out
-
print
public void print(char c)
print out a character- Parameters:
c
- the character that will be print out
-
println
public void println(char c)
print out a character and then terminate the line- Parameters:
c
- the character that will be print out
-
println
public void println(String value)
print out a string and then terminate the line- Parameters:
value
- the string that will be print out
-
print
public void print(String value)
print out a string- Parameters:
value
- the string that will be print out
-
println
public void println(int value)
print out an int value and then terminate the line- Parameters:
value
- the int value that will be print out
-
print
public void print(int value)
print out an int value- Parameters:
value
- the int value that will be print out
-
println
public void println(short value)
print out a short value and then terminate the line- Parameters:
value
- the short that will be print out
-
print
public void print(short value)
print out a short value- Parameters:
value
- the short that will be print out
-
print
public void print(boolean value)
print out a boolean value- Parameters:
value
- the boolean value that will be print out
-
println
public void println(boolean value)
print out a boolean value and then terminate the line- Parameters:
value
- the boolean value that will be print out
-
println
public void println(byte value)
print out a byte and then terminate the line- Parameters:
value
- the byte that will be print out
-
print
public void print(byte value)
print out a byte value- Parameters:
value
- the byte value that will be print out
-
println
public void println(long value)
print out a long and then terminate the line- Parameters:
value
- the long that will be print out
-
-