g*s
5 楼
yes. you can.
I thought your original question was to define mapping between one object
to multiple objects. just define a HashMap, put ArrayList of multiple
objects as value corresponding to the key object.
【在 w***y 的大作中提到】
: 如果我有个ArrayList a, a.get(i) 可以是一个arraylist么? 呵呵, 主要因为
: 我这个一对多的那个'多'也不是个定数, 不然就搞个二维数组了
I thought your original question was to define mapping between one object
to multiple objects. just define a HashMap, put ArrayList of multiple
objects as value corresponding to the key object.
【在 w***y 的大作中提到】
: 如果我有个ArrayList a, a.get(i) 可以是一个arraylist么? 呵呵, 主要因为
: 我这个一对多的那个'多'也不是个定数, 不然就搞个二维数组了
相关阅读
speaking of crappy code如何用java编一个安装程序?scjp 5.0 模拟题No decent way for input password from command line.[转帖]如何才算掌握Java(J2SE篇)Sun要开源Java了这里有人去OOPSLA么?Any IBM X60 or I845-850 chip user here? dual monitor questi (转载)Plan to learn Java, need some help!yahoo mail beta真cool啊斑竹Any good book about web service with JAVA觉得martin fowler在领导现在j2ee潮流啊.netbean vs. eclipseCan someone say say advantage of IDEA?key design怎么返回一个变量的地址?Can you show me ur Log4J config file?java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName classIs there a way to preserve messageID in email parsing?