Question: Exercise 1: Write a Point class that has xpos and ypos as its fields, get and set methods, and a toString method. It must be

Exercise 1: Write a Point class that has xpos and ypos as its fields, get and set methods, and a toString method. It must be written as a generic class, which means that it should work for any type of object, that is, the xpos and ypos could be either Integer objects, or Double objects, or String objects. A sample test program is given below. Modify the test program to accept input data from the user and try it for different input values. public class PointTester public static void main (String[ args) Point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
