How do I read a char from a user in the command line

char, java

Solution

final DataInputStream dis = new DataInputStream(System.in);
final char c = dis.readChar();

Problem

How do I read a char from a user in the command line. I am familiar with readInt(). Is there something like this for chars. This is for the stanford course I am taking online as part of stanford engineering everywhere over the summer and I need to finish soon before my high school term starts. Is there any way I can do this using the acm.util, acm.program acm.util, or java.awt class because that's all I'm allowed for the assignment.

Original source