(Java 8) java.util.function.Supplier
问题 In the following code, I tried to call the info method taking a Supplier. (The info method is overloaded: one is taking a String and the other is taking a Supplier.) The compiler complains that "The method info(String) is not applicable for the argument Supplier<Double> ". My expectation is to call the info method taking a Supplier by sending a Supplier object. Can I get some help to understand this error? Supplier<Double> randomSupplier = new Supplier<Double>() { public Double get() { return