/** An instance of this class classifies as RED any integer whose absolute ** value is prime and classifies as BLUE any integer whose absolute ** value is non-prime (i.e., composite). ** ** @author R. McCloskey ** @author ** @version October 2007 */ public class PrimeCompositeClassifier implements RedBlueClassifierOfInt { /** Returns true iff the absolute value of the specified number is prime. ** @return true iff the absolute value of the specified number is prime ** @param k the number whose absolute value is to be tested for primality */ public boolean isRed(int k) { ..... missing code ..... } /** Returns true iff the absolute value of the specified number is ** composite (i.e., non-prime). ** @return true iff the absolute value of the specified number is ** composite (i.e., non-prime). ** @param k the number whose absolute value is to be tested for ** compositeness */ public boolean isBlue(int k) { ..... missing code ..... } }