Given two points in an applet represented by the four intvariables x1, y1, x2 and y2, write a paint method to draw a linebetween the two points and write the location of the two pointsnext to the two points.
Expert Answer
An answer will be send to you shortly. . . . .