Here is a Java Program to Read Character from the Console using BufferedReader
Output of Above Java Program
Java Programming Language Tutorial
J
a
v
a
P
r
o
g
r
a
m
m
i
n
g
L
a
n
g
u
a
g
e
T
u
t
o
r
i
a
l
q
q
import java.io.*; class BRRead { public static void main(String args[]) throws IOException { char c; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter characters, 'q' to quit."); // read characters do { c = (char) br.read(); System.out.println(c); } while(c != 'q'); } }
Output of Above Java Program
Java Programming Language Tutorial
J
a
v
a
P
r
o
g
r
a
m
m
i
n
g
L
a
n
g
u
a
g
e
T
u
t
o
r
i
a
l
q
q