需求 从List对象列表提取2个字段,分别作为Map的key-value 实现 public static void main( String[] args ) { ArrayList<Person> list = new ArrayList<>()