Google some info on DIS - Data Input Streams.

They are one way to accept input in Java proggs.