mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
18 lines
368 B
Java
18 lines
368 B
Java
import java.util.concurrent.Callable;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
method(() -> {
|
|
if (check(args[0])) {
|
|
return "";
|
|
} else {
|
|
throw new Exception("");
|
|
}
|
|
});
|
|
}
|
|
|
|
public static <T> void method(Callable<T> callable) {}
|
|
public static boolean check(String s) throws Exception {
|
|
return true;
|
|
}
|
|
} |