1 2 3 4 5 6 7 8 9 10 11
public class Pair<S, T> { public final S x; public final T y; public Pair(S x, T y) { this.x = x; this.y = y; } public S getX(){return x;} public T getY(){return y;} }