任何人都可以告诉我为什么这不编译?
public class TestClass {
private boolean doThis = false;
protected void fooThat() {}
protected void fooThis() {}
public void execute() {
(doThis ? this::fooThis : this::fooThat).run();
}
}
Run Code Online (Sandbox Code Playgroud)