topicThe on-line Java documentation will assist you with your questions.
is the web link. There you can find information about the classes, and the parameters required for various method calls.
The Java documentaion is browsable on-line, or you can download it to your own computer.
I also recommend the Java tutorial found at:
This tutorial will take you through all the steps for building that first application using Java.
The book Thinking in Java, 2nd edition, is at:
You can also either browse this book online or download for free - this is an excellent text.