我的github

最常用的便是for循环查询:

for(StudentRecord record : records) {
    if(record.getYear() == yearSearch) {
       System.out.println(record.getId()+" " + record.getFirst()+ " "+ record.getLast() + "+record.getYear());
        count++;
    }
}

参考:https://www.coder.work/article/6150618

posted on 2023-03-08 17:00  XiaoNiuFeiTian  阅读(29)  评论(0编辑  收藏  举报