//PairManager.java

public class PairManager
{
    public static void main(String[] args)
    {
        Pair<Integer> twoInts = new Pair<Integer>(4, 12);
        Pair<Double> twoDbls = new Pair<Double>(4.5, 2.2);
        Pair<Character> twoChars = new Pair<Character>('r', 'f');

        System.out.println(twoInts.chooseItem());
        System.out.println(twoDbls.chooseItem());
        System.out.println(twoChars.chooseItem());
    }
}

