diff options
Diffstat (limited to 'Pair.java')
-rw-r--r-- | Pair.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Pair.java b/Pair.java new file mode 100644 index 0000000..d7648d0 --- /dev/null +++ b/Pair.java @@ -0,0 +1,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;} +} |