mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
174 B
Java
10 lines
174 B
Java
class JavaClass {
|
|
interface Computable<T> {
|
|
T compute();
|
|
}
|
|
|
|
static <T> T compute(Computable<T> computable) {
|
|
return computable.compute();
|
|
}
|
|
}
|