import java.io.*;

public 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 char
    do
    {
      c = (char) br.read();
      System.out.println(c);
    } while (c != 'q');
  }
}

Use BufferedReader to read characters
Use BufferedReader to read characters
