// Arup Guha
// 4/6/2010
// 2008 AP Free Response Question #4B Solution

public class AndChecker implements Checker {
	
	private Checker criterion1;
	private Checker criterion2;
	
	public AndChecker(Checker a, Checker b) {
		criterion1 = a;
		criterion2 = b;
	}
	
	// There's not a whole lot here except for the syntax. My guess is
	// that is what they are entirely grading on.
	public boolean accept(String text) {
		return criterion1.accept(text) && criterion2.accept(text);
	}
}