how to make java listen to the input?

Printable View