Here are the instructions:
The program below includes the expanded version of the above definition of the APPoint class. In the space provided, complete the definition of the main method — replacing the two comments by appropriate code — so that two APPoint objects are created. The first should be assigned to the variable a and should represent the point with coordinate (25.3,–6.8). The second should be assigned to the variable b and should represent the point with coordinate (–5,16.8). public class APPoint { private double myX; private double myY; public APPoint( double x, double y ) { myX = x; myY = y; } public double getX() { return myX; } public double getY() { return myY; } public static void main( String[] args ) { APPoint a = //... //... System.out.println( "a is (" + a.getX() + "," + a.getY() + ")" ); System.out.println( "b is (" + b.getX() + "," + b.getY() + ")" ); } }
I have to replace the two commented lines with code with the definition of the "main" method. As always, I'm grateful for all help.
Thanks, ghostheadx
P.S. I just need a start. I could have the answer any time I wanted at the click of a button. Please remember that I have a "show solution" button, that I am purposely NOT clicking. That is because I want to be guided, as opposed to being fed the solution unless I take to long and fall behind. Nevertheless, all help appreciated.