- 博客(1)
- 收藏
- 关注
原创 普通for-增强for-forEach-forEach-Stream循环四种遍历方法执行效率比较
System.out.println("forEach-parallelStreamm循环用时:" + (e2 - e1) + " ms");System.out.println("forEach-Stream循环用时:" + (d2 - d1) + " ms");System.out.println("forEach循环用时:" + (c2 - c1) + " ms");System.out.println("普通for循环用时:" + (a2 - a1) + " ms");
2023-05-12 10:17:04 318 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人