public class MyClass { double x; double y; public MyClass(double x, double y) { this.x = x; this.y = y; } }