摘要: 1. 使用 stream 将一个数组放进 stream 里面,然后直接调用 stream 里的 min 或 max 函数得到最大值。 @Test public void index2(){ int ages[] = {18 ,23 ,21 ,19 ,25 ,29 ,17}; int maxNum = 阅读全文
posted @ 2020-06-10 15:57 KoMiles 阅读(17552) 评论(0) 推荐(2) 编辑