前言 在前面的文章中其實大家也已經看到我使用過collect(Collectors.toList()) 將數據最後彙總成一個 List 集合。 但其實還可以轉換成Integer、Map、Set 集合等。 一、查找流中的最大值和最小值 static ListStudent students = new ArrayList(); static {