// Arup Guha
// 4/24/2016
// Framework for 2015 AP CS A Free Response Question 4: Multiple Groups

import java.util.*;

public class MultipleGroups implements NumberGroup {

	private List<NumberGroup> groupList;

	public MultipleGroups() {
		groupList = new ArrayList<NumberGroup>();
	}

	public void add(NumberGroup g) {
		groupList.add(g);
	}

	/*** Fill in the solution to part C here. ***/
	public boolean contains(int value) {

	}

	public static void main(String[] args) {

		// This is their test.
		MultipleGroups myNums = new MultipleGroups();
		myNums.add(new Range(5, 8));
		myNums.add(new Range(10, 12));
		myNums.add(new Range(1, 6));

		// It's easy just to see all of the results.
		for (int i=1; i<15; i++) {
			if (myNums.contains(i))
				System.out.println(i+" is in my group");
			else
				System.out.println(i+" is not in my group");
		}
	}
}

/*** Fill in the solution to part B here. ***/
class Range implements NumberGroup {

}

/*** Fill in part A, the interface here. ***/
interface NumberGroup {

}