import static java.lang.System.*; public class RangeTester { public static void main(String[] args) { NumberGroup range1 = new Range(-3, 2); out.println(range1); MultipleGroups multiple1 = new MultipleGroups(); multiple1.add(new Range(5, 8)); multiple1.add(new Range(10, 12)); multiple1.add(new Range(1, 6)); out.println(multiple1.contains(2)+" true"); out.println(multiple1.contains(9)+" false"); out.println(multiple1.contains(6)+" true"); } }