First Java application help
I really need help on this. I'm completely clueless :/
The Application:
Write a simple class called PointChecker that will
1) Declare a variable as a Point
2) Using the constructor that has two double parameters construct a point at location 93,67
3) Using the methods getX and getY and the System.out.print and println methods output the actual values that the created point contains
4) The output the expected values (what you expect to see)
5) Then using the translate method move the x coordinate 13 to the left (negative) and the Y value 7 down (positive).
6) Output values as described in steps 3 and 4
This is completely wrong, I know, but it's what I came up with. :/
The Application:
Write a simple class called PointChecker that will
1) Declare a variable as a Point
2) Using the constructor that has two double parameters construct a point at location 93,67
3) Using the methods getX and getY and the System.out.print and println methods output the actual values that the created point contains
4) The output the expected values (what you expect to see)
5) Then using the translate method move the x coordinate 13 to the left (negative) and the Y value 7 down (positive).
6) Output values as described in steps 3 and 4
This is completely wrong, I know, but it's what I came up with. :/
- Code: Select all
package course.jzc22.lab01;
public class PointTester {
/**
* @param args
*/
public static void main(String[] args) {
public int Point;
double getX;
double getY;
public Point(X, Y); {
X = getX;
Y = getY;
}
Point myPoint = new Point (93, 67);
System.out.println("Point");
}
}