hi, I'm new at Java, I use netbeans v3.6

I need a command that is similar to 'getc()' of C\C++
or 'keypressed()' of Pascal.

thanx.