If you are
totally clueless, perhaps
you should start with the
Java Tutorial. Do a little research and learning up front and you'll save a ton of time and effort over stumbling around in the dark.
(and in case you think I'm blowing smoke, the tutorial includes how to do
input and output, so it will answer at least one of your questions)