
// Pair.java
// Andrew Davison, ad@coe.psu.ac.th, May 2023

/*

  Usage:
    > compile.bat Pair.java
*/

public class Pair<X, Y> 
{ 
  private X x;
  private Y y;


  public Pair(X x, Y y) 
  { this.x = x;  this.y = y; }

  public X getX() 
  { return x; }

  public Y getY() 
  { return y; }

  public void setX(X el) 
  { x = el; }

  public void setY(Y el) 
  {y = el; }

  public String toString()
  {  return "(" + x + ", " + y + ")";  }

}  // end of Pair class
