### Question:
Range { public boolean contain(long n) { if(operators.isEmpty()) { return false; } for (Operator op : operators) { if(op.match(n)) { return true; } } return false; } private  Range(); static Range newInstance(String s); @Override String toString(); String toStringEx(); boolean contain(long n); boolean notContain(long n);  }### Answer:
@Test public void testContain() { Range r = Range.newInstance("0-1"); assertTrue(r.contain(0)); assertTrue(r.contain(1)); assertTrue(r.notContain(2)); System.out.println(r.toStringEx()); }