2015-11-03 12:00:44 -08:00

10 lines
258 B
Java

// interfaces/interfaceprocessor/Apply.java
package interfaces.interfaceprocessor;
public class Apply {
public static void process(Processor p, Object s) {
System.out.println("Using Processor " + p.name());
System.out.println(p.process(s));
}
}