package weeSeepy.test; import weeSeepy.problem.*; import weeSeepy.domain.*; public class Test02 { public static void main(String[] args){ Problem pb = new Problem("Test02: domain checks"); Domain d = new Domain(pb,0,4); System.out.println(d); d.remove(3); System.out.println(d); d.remove(1); System.out.println(d); d.remove(0); System.out.println(d); pb.pushWorld(); System.out.println("min and max: "+ d.min() +" "+ d.max()); d.remove(6); System.out.println(d); pb.popWorld(); System.out.println(d); System.out.println(d.removeAllBut(2)); System.out.println("min and max: "+ d.min() +" "+ d.max()); /* d.reset(); System.out.println(d); System.out.println("min and max: "+ d.min() +" "+ d.max()); */ pb.pushWorld(); d.removeAllBut(2); System.out.println(d); pb.popWorld(); System.out.println(d); System.out.println(d.remove(27)); pb.show(); } }