Getting last row's data in the map
问题 My objective is to create a map. It have reqid , name and lowest status number of a set as a key. Here set refers to rows belonging to a specific Reqid . The value of the map is an Arraylist which consists of all rows as objects of a specific id . public class MapKey { private Integer id; private String name; private Integer status; public MapKey(Integer id, String name,Integer status) { this.id = id; this.name = name; this.status=status; } @Override toString,hashCode,equals public class