最佳答案
Consider a class User
public class User{
int userId;
String name;
Date date;
}
Now I have a List<User>
of size 20, how can I find the max date in the list without using manual iterator?