- RedBluePartitioner:
Generic Java class, instances of which can perform 2-color
partitioning upon arrays.
The student must make a couple of minor adjustments to the
partition() method.
- RedBlueClassifier:
Generic Java interface; an implementing class can classify
values (of some type) as being either RED or BLUE.
- PrimeVsComposite:
A class that implements RedBlueClassifier<Integer>,
classifying as RED any integer whose absolute value is prime.
All other integers are classified as BLUE.
- NegVsPosInt:
A class that implements RedBlueClassifier<Integer>,
classifying as RED any integer that is negative.
All other integers are classified as BLUE.
The student must supply this class.
- SmallVsBigInt:
A class that implements RedBlueClassifier<Integer>,
classifying as RED any integer that is less than a boundary value
(supplied at construction).
All other integers are classified as BLUE.
The student must supply this class.
- WordVsNonWord:
A class that implements RedBlueClassifier<String>,
classifying as RED any String that is composed entirely of characters
that satisfy the Character.isLetter() method.
All other strings are classified as BLUE.
The student must supply this class.
- RB_PartTester:
Java application that is for the purpose of testing all the
classes listed above.