Reading Online Documentation

When you access the online documentation link Java On-line Documentation you have access to many different Java documentation pages. We are interested in the link under "API & Language Documentation" Java 2 Platform API Specification. Scroll down until you see it and click on it. This brings you to the first page, which should look like this:

Online Java 2 Documentation

Scroll down in the alphabetical class listing and click on the Point class. You should a screen that looks l-similar to this:

Documentation for the Point Class

Let's go through this documentation and learn how to read it.

Reading the Documentation for the Point Class

    Since the Point class is in the java.awt package, you must import it if you wish to use the class:

    import java.awt.*;

If you scroll down more in the Point documentation, you will see an explanation of the constructors and other methods that belong to the Point class. Methods are explained with some text and with the methods's signatures. Let's look at the constructors for the Point class next.

Constructors for the Point Class

Let's look at some of the other methods in the Point class.

Methods Belonging to the Point Class

Read the toString() Method Signature