public interface Director {
void makeMovie();
}
public class Test{
public static void main(String[] args) {
//请使用Lambda和省略格式调用invokeDirect方法,打印输出“导演拍电影啦!”字样
invokeDirect(()->System.out.println("导演拍电影啦!"));
}
private static void invokeDirect(Director director) {
director.makeMovie();
}
}