Modify the generic Pair class so that both values have the same type.

Complete the following file:

// TODO: Modify this generic class so that both elements have the same type. public class Pair<T, S> { private T first; private S second; public Pair(T firstElement, S secondElement) { first = firstElement; second = secondElement; } public T getFirst() { return first; } public S getSecond() { return second; } }

Use the following file:

public class PairTester
   public static void main(String[] args)
      Pair<Integer> p = new Pair<Integer>(17, 19);
      System.out.println("Expected: 17");
      System.out.println("Expected: 19");