mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
19 lines
284 B
Java
19 lines
284 B
Java
import java.io.*;
|
|
|
|
class Main {
|
|
void test() {
|
|
new <caret>Logger(System.out).log("foo");
|
|
}
|
|
}
|
|
|
|
class Logger {
|
|
private final PrintStream ps;
|
|
|
|
Logger(PrintStream ps) {
|
|
this.ps = ps;
|
|
}
|
|
|
|
void log(Object obj) {
|
|
ps.println(obj);
|
|
}
|
|
} |