String oldResults = argv[0]; String newResults = argv[1];
Project project = new Project();  String op = argv[0]; TreeSet<BugInstance> oldBugs = readSet(argv[1], project); TreeSet<BugInstance> newBugs = readSet(argv[2], new Project());  SortedBugCollection result = new SortedBugCollection();  if (op.equals("-new")) { newBugs.removeAll(oldBugs); result.addAll(newBugs); } else if (op.equals("-fixed")) { oldBugs.removeAll(newBugs); result.addAll(oldBugs); } else if (op.equals("-retained")) { oldBugs.retainAll(newBugs); result.addAll(oldBugs); } else throw new IllegalArgumentException("Unknown operation: " + op);  result.writeXML(System.out, project);
	public static void main(String[] argv) {		if (argv.length != 2) {			System.err.println("Usage: " + BugHistory.class.getName() + " <old results> <new results>");			System.exit(1);		}		String oldResults = argv[0];		String newResults = argv[1];	}