I need the following class to be Serializable.
package helpers; public class XY implements Comparable { public int x; public int y; p
Implementing Serializable will do the trick, but you must write the object with an ObjectOutputStream, not just an OutputStream.
Serializable