Map<Integer,PskmSeat> group = new HashMap<>(); for (PskmSeat ps: list_seat) { Integer placeid = ps.getPlaceid(); group.put(placeid, ps); } PskmSeat seat = group.get(key);
-------------------------------------------------java
其餘方式待補充;spa