11 lines
280 B
Java
11 lines
280 B
Java
//: interfaces/interfaceprocessor/Apply.java
|
|
package interfaces.interfaceprocessor;
|
|
import static net.mindview.util.Print.*;
|
|
|
|
public class Apply {
|
|
public static void process(Processor p, Object s) {
|
|
print("Using Processor " + p.name());
|
|
print(p.process(s));
|
|
}
|
|
} ///:~
|