CS计算机代考程序代写 public class PairVar implements Pair {

public class PairVar implements Pair {

private int first;
private int second;

public PairVar(int firstInit, int secondInit) {
first = firstInit;
second = secondInit;
}

public int getFirst() {
return first;
}

public int getSecond() {
return second;
}

public void setFirst(int value) {
first = value;
}

public void setSecond(int value) {
second = value;
}

}