blob: b3c5de322412a05a1d7597d2e88120bf2d623404 [file]
import java.util.function.Supplier;
class Foo {
String s = "foo";
Foo() {
Supplier<String> fn = s::trim;
s = "bar";
System.out.println(fn.get());
}
public static void main(String[] args) {
new Foo();
}
}