public static class Display.DefaultPrinter extends Object implements Display.Printer
| Constructor and Description |
|---|
DefaultPrinter(PrintWriter out) |
| Modifier and Type | Method and Description |
|---|---|
Display.Printer |
print(Object x)
Prints an object.
|
Display.Printer |
println(Object x)
Prints an Object and then terminates the line.
|
public DefaultPrinter(PrintWriter out)
public Display.Printer print(Object x)
Display.Printerprint in interface Display.Printerx - The Object to be printedpublic Display.Printer println(Object x)
Display.Printerprintln in interface Display.Printerx - The Object to be printed.Copyright © 2023. All rights reserved.