I really need help on this question. It tells me to write a class named Prefix that implements an interface called Decision. public interface Decision<T> { public boolean isOK(T o); } So, when objects of this class are constructed, they are passed to a String. The isOk method should return true when its parameter has been passed as its prefix. if "re" is called from decision, then isOk("really") returns true, but isOk("rich") returns false. Thanks for your help.
The answer to this question is too simple to help you with. If you cannot use Google, or open a book, and find out how to answer this question for yourself then you will never answer any Java question, ever.