2018年3月28日

摘要: 什么是函数式接口(Functional Interface) 其实之前在讲Lambda表达式的时候提到过,所谓的函数式接口,当然首先是一个接口,然后就是在这个接口里面只能有一个抽象方法 (可以有default, static方法)。 这种类型的接口也称为SAM接口,即Single Abstract 阅读全文
posted @ 2018-03-28 18:15 卖肾割阑尾 阅读(216) 评论(0) 推荐(0)
摘要: 必须要有PipedInputStream ,PipedOutputStream 在不同线程,不然死锁 Java.io.PipedOutputStream and java.io.PipedInputStream has been introduced in JDK 1.0. PipedOutputS 阅读全文
posted @ 2018-03-28 16:55 卖肾割阑尾 阅读(101) 评论(0) 推荐(0)
摘要: 非捕获组:格式:(?:xxxx), 如:(?:aaa)\\w+(bbb)\\1,\\1 代表重复捕获的第一组即是(bbb) public static void main(String[] args) { String str = "fooccccbarbarbarfo"; Pattern p = 阅读全文
posted @ 2018-03-28 14:53 卖肾割阑尾 阅读(178) 评论(0) 推荐(0)
摘要: Matches according to the following rules:A backslash that precedes a non-special character indicates that the next character is special and is not to 阅读全文
posted @ 2018-03-28 14:40 卖肾割阑尾 阅读(133) 评论(0) 推荐(0)

导航