
public class MainDriver {

	public static void main(String[] args) {

		Pair<Integer> pair = new Pair<Integer>(1,2);
		
		System.out.println("Sum: " +
					pair.getElement1() +
					pair.getElement2());   // treats them like strings and concatenates them
		System.out.println("Sum: " +
					(pair.getElement1() +
					pair.getElement2()));  // to add the two numbers, add the extra parentheses
		
		Pair<String> pair2 = new Pair<String>("Hello", "World");
		System.out.println("Sum: " +
					pair2.getElement1() + " " +
					pair2.getElement2()); 
		
		
	}

}
