package mrbesen.cr.auto.clicker; public class Point { int x = 0, y = 0; public String serialize() { return (x +"x"+y); } public Point(String deserialize) { String[] split = deserialize.split("x",2); x = Integer.parseInt(split[0]); y = Integer.parseInt(split[1]); } public Point(int x, int y) { this.x = x; this.y = y; } }