Readd File to Index#324
This commit is contained in:
parent
749880e3b9
commit
52d6e20ad9
@ -0,0 +1,21 @@
|
|||||||
|
package com.iluwatar.delegation.simple.printers;
|
||||||
|
|
||||||
|
import com.iluwatar.delegation.simple.Printer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specialised Implementation of {@link Printer} for a HP Printer, in
|
||||||
|
* this case the message to be printed is appended to "HP Printer : "
|
||||||
|
*
|
||||||
|
* @see Printer
|
||||||
|
*/
|
||||||
|
public class HpPrinter implements Printer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void print(String message) {
|
||||||
|
System.out.println("HP Printer : " + message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user