10 lines
258 B
Java
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));
|
|
}
|
|
}
|