CS计算机代考程序代写 public class TestPair {

public class TestPair {

public static void main(String[] args) {

Integer i1, i2;
i1 = new Integer(15);
i2 = new Integer(21);

PairArray p1;
p1 = new PairArray(i1, i2);

String s1, s2;
s1 = new String(“M”);
s2 = new String(“T”);

Pair p2;
p2 = new PairVar(s1, s2);

i2 = p1.getFirst();

}
}