MyPoint - public String toString String rval =""...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class MyPoint extends java.awt.Point { private static final long serialVersionUID = 1; int x; int y; public MyPoint(int x, int y) { super(x, y);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public String toString() { String rval = ""; rval += "(" + (int)this.getX() + "," + (int)this.getY() + ")"; return rval; } }...
View Full Document

Ask a homework question - tutors are online