Is there an elegant way to fire an event when characters are available from System.in? I\'d like to avoid polling InputStream.available().
System.in
InputStream.available()
Sure...start a thread that blocks on the input and then calls your event method when it gets something.