blob: 5c5f93f291660cf5363998e8c826a4d0add612ac [file] [log] [blame]
import java.io.IOException;
class Main48 {
public static void main(String[] args) throws Exception {
templateMethod(( ) -> {
throw new IOException();
});
}
static void templateMethod(RunnableWithException<IOException> r) {
try {
r.run();
} catch (IOException e) {
e.printStackTrace();
}
}
interface RunnableWithException<E extends Exception> {
void run() throws E;
}
}