![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jdk
暮霭层层楚天阔
Made in the nineties
-- 好读书,每有会意,便欣然忘食
展开
-
i++和 ++i区别
int i = 1; int j = 1; i++; System.out.println("i = " + i); System.out.println("i = i + 1 = " + (i = i + 1)); System.out.println("i++ = " + i++); ++j; System.out.println("j = " + j); System.out.println("j++ = " + ++j); System.out.println("j = " + .原创 2022-01-05 18:52:51 · 321 阅读 · 0 评论 -
for循环执行顺序
public class ThreadPoolManager { static int i = 1; int j = 1; public static void main(String[] args) { for (System.out.println("1"); ha(); System.out.println(4+"\r\n---------------------")) { System.out.println("3");原创 2022-01-05 18:34:10 · 416 阅读 · 0 评论 -
java8新特性:函数式接口
1.四大核心函数式接口Consumer:消费性接口void accept(T t); 无返回值,对这个参数进行处理就行Supplier供给型接口T get(); 就是获取一些东西,返回传入的类型Function<T,R> 函数式接口R apply(T t); 对传入T进行一个处理,返回一个R类型值Predicateboolean test(T t) 返回符合条件的类型的数据2.其他一些扩展接口...原创 2021-04-25 21:36:25 · 68 阅读 · 0 评论