1: //PairManager.java
3: public class PairManager
4: {
5: public static void main(String[] args)
6: {
7: Pair<Integer> twoInts = new Pair<Integer>(4, 12);
8: Pair<Double> twoDbls = new Pair<Double>(4.5, 2.2);
9: Pair<Character> twoChars = new Pair<Character>('r', 'f');
11: System.out.println(twoInts.chooseItem());
12: System.out.println(twoDbls.chooseItem());
13: System.out.println(twoChars.chooseItem());
14: }
15: }