摘要: public class FunctionTest { public static void main(String[] args) { String s = "林青霞,30"; convert(s, s1 -> s1.split(",")[1], s1 -> Integer.parseInt(s1 阅读全文
posted @ 2020-06-08 18:27 硬盘红了 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public class FunctionDemo { public static void main(String[] args) { convert("100", s -> Integer.parseInt(s)); convert(100, i -> String.valueOf(i + 56 阅读全文
posted @ 2020-06-08 17:57 硬盘红了 阅读(596) 评论(0) 推荐(0) 编辑
摘要: public class PredicateTest { public static void main(String[] args) { String[] strArray = {"林青霞,30","柳岩,34","张曼玉,35","貂蝉,31","王祖贤,33"}; ArrayList<Stri 阅读全文
posted @ 2020-06-08 17:30 硬盘红了 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public class PredicateDemo { public static void main(String[] args) { boolean b1 = checkString("hello", s -> s.length() > 8); System.out.println(b1); 阅读全文
posted @ 2020-06-08 15:55 硬盘红了 阅读(380) 评论(0) 推荐(0) 编辑
摘要: public class ConsumerTest { public static void main(String[] args) { String[] strArray = {"林青霞,30", "张曼玉,35", "王祖贤,40"}; printInfo(strArray, (String s 阅读全文
posted @ 2020-06-08 15:28 硬盘红了 阅读(158) 评论(0) 推荐(0) 编辑