mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
15 lines
317 B
Java
15 lines
317 B
Java
import java.io.Reader;
|
|
import java.io.StringReader;
|
|
import java.util.concurrent.Callable;
|
|
|
|
class Test {
|
|
public static final void main(String[] args) throws Exception {
|
|
Reader r = new StringReader("Elvis lives!");
|
|
Callable<Integer > c1 = () -> {
|
|
while (true) {
|
|
r.read();
|
|
}
|
|
};
|
|
}
|
|
}
|