例:将一筐苹果,没人10个,分给5个不同的人,返回分好的组的数据
public static void main(String [] args) {
List<String> yList = new ArrayList<>();
for(int i =0 ;i<110 ;i++) {
yList.add(i+"");
}
System.out.println(yList);
int number = 23;
List<String> list = new ArrayList<String>();
list.add("王一");
list.add("王二");
list.add("王三");
Map<String,List<String>> map = assignCase(yList,list,number);
System.out.println(map.toString());
}
public static Map<String,List<String>> assignCase(List<String> caseIds,List<String> peopleIds,Integer number){
Map<String,List<String>> map = new HashMap<>();