A D G I M P S T W

A

add(Point) - Method in class Point
adds the x, y values of the passed object to the x, y values respectively of the Point object that invoked the method

D

distance(Point) - Method in class Point
determines the distance between the x, y values of the passed object to the x, y values respectively of the Point object that invoked the method

Uses the distance function:
distance = sqrt((x2 - x1)^2 + (y2 - y1)^2)

G

getX() - Method in class Point
to be used for debugging or by other methods
getY() - Method in class Point
to be used for debugging or by other methods

I

InteractiveIO - class InteractiveIO.
 
InteractiveIO() - Constructor for class InteractiveIO
sets up the Buffered Reader object to handle keyboard input

M

main(String[]) - Static method in class PointTest
tests the Point model.

P

Point - class Point.
 
Point() - Constructor for class Point
sets the default values of the Point object to 0, 0
Point(int, int) - Constructor for class Point
sets the value of the Point object to the value of the X and Y parameters (which are ints)
PointTest - class PointTest.
 
PointTest() - Constructor for class PointTest
 
promptAndRead(String) - Method in class InteractiveIO
write str to the monitor.

S

set(String, String) - Method in class Point
sets the value of the Point object to the value of the X and Y parameters (which are Strings)

T

toString() - Method in class Point
return a string with an external representation (X and Y) of the values of the Point object.

W

write(Object) - Method in class InteractiveIO
write obj using toString() method to the monitor without an end of line at the end
write(String) - Method in class InteractiveIO
write str to the monitor
writeln() - Method in class InteractiveIO
write empty string to the monitor with an end of line character at the end
writeln(Object) - Method in class InteractiveIO
write obj using toString() method to the monitor with an end of line at the end
writeln(String) - Method in class InteractiveIO
write str to the monitor with an endl of line at the end

A D G I M P S T W