T - The type of the objects.public class Pair<T> extends Object
public T get(int index) throws IllegalArgumentException
index - The index of the object to be accessed.first object if index is 0; the
second object if index is 1.IllegalArgumentException - If index is neither 0
or 1.Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.