final ListInteger valueList = mapputIfAbsentempCode new ArrayList;if valueList == null valueList = mapgetempCode;valueListaddlineNum;变成一句代码
map.computeIfAbsent(empCode, k -> new ArrayList<>()).add(lineNum);
原文地址: https://www.cveoy.top/t/topic/iyo1 著作权归作者所有。请勿转载和采集!