15
package arraylistlearning;
public class Point4DTester {
public static void main(String[] arguments) {
MyPoint4D object1 = new MyPoint4D(10,22,71,26);
System.out.println("The 4D point is located at ("
+ object1.x + ", "
+ object1.y + ", "
+ object1.z + ", "
+ object1.getTime() + ")");
System.out.println("\tIt's moving to (10, 22, 71, 27)");
object1.move(10, 22, 71, 27);
System.out.println("The 4D point is now at ("
+ object1.x + ", "
+ object1.y + ", "
+ object1.z + ", "
+ object1.getTime() + ")");
System.out.println("\tIt's moving 20 units on the t axes.");
object1.translate(0, 0, 0, -200);
System.out.println("The 4D point ends up at ("
+ object1.x + ", "
+ object1.y + ", "
+ object1.z + ", "
+ object1.getTime() + ")");
}
}