//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------//------------// Chapter 8 / Section 8.11 / Page 299//	Using the Set class//------------ //------------// Notes//	- This class requires the Set class.//	- !!!! Differences from the code in the text !!!!//		The function header of the 'main' method has an extra pair of '()'//		The text uses the a method 'toString' which is not defined//			for the Set class until the subsequent Java Interlude.//			the code below uses the Set class print method to//			print out the sets.//------------class useSet {	public static void main(String [] args) {		Set s1 = new Set();		s1.addElement("A");		s1.addElement("B");		s1.addElement("C");		s1.addElement("A");		s1.print(System.out);		System.out.println();		Set s2 = new Set();		s2.addElement("B");		s2.addElement("C");		s2.addElement("D");		s2.addElement("D");		s2.print(System.out);		System.out.println();		s1.union(s2).print(System.out);		System.out.println();		s1.intersection(s2).print(System.out);		System.out.println();	}}