mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 07:28:24 +07:00
GitOrigin-RevId: 122e10e69f93c31e289a024381c7315f1a62203b
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);
|
|
}
|
|
} |