package com.java14.myjava;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
public class ListMapTest {
@Test
public void ListMap()
{
Map >> allbuillding =new HashMap >>();
for (int i=1 ;i<=10;i++)
{
Map> allcells = new HashMap>();
for(int j=1;j<=3;j++)
{
List allnames=new ArrayList();
for(int k=1;k<=5;k++){
allnames.add("TOM"+i+"栋"+j+"单元"+k+"户");
}
allcells.put(i+"栋"+j+"单元", allnames);
}
allbuillding.put(i, allcells);
System.out.println(allbuillding +"\r\n");
}
}
}