Java.io.PrintStream.print() Method

Description

The java.io.PrintStream.print() method prints 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.

Declaration

Following is the declaration for java.io.PrintStream.print() method.

public void print(char c)

Parameters

c -- The char to be printed

Return Value

This method does not return a value.

Exception

NA

Example

The following example shows the usage of java.io.PrintStream.print() method.