标签:tst ima private com alt image rgs demo vat
public class SupplierDemo { public static void main(String[] args) { String s = getString(()->"函数式接口"); System.out.println(s); Integer i = getInteger(()->20); System.out.println(i); } private static String getString(Supplier<String> sup){ return sup.get(); } private static Integer getInteger(Supplier<Integer> sup){ return sup.get(); } }
标签:tst ima private com alt image rgs demo vat
原文地址:https://www.cnblogs.com/pxy-1999/p/13055482.html