请问该如何处理这个数组 ? 用二维数组不行吗?String test[][]=new String[7][2];test[1][0]="02";test[1][1]="01";test[2][0]="03";test[2][1]="02";....... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 you can use java.util.Hashtablethe method put(Object key,Object value) in Hashtable can resolve your questiontry it 请问是不是put(父ID,id) ......那取出来怎么操作呢 ? 我还是不太明白如果放到Hashtable 父ID跟子ID的关系是怎么样的 ?请多指教..谢谢 ! 实际上你就要一棵树的结构。class tree { Arraylist children = new Arraylist() { tree1,tree2....tree3 } Object data; // some methods about tree operation void addChild(tree child){ if ( !children.contains(child) ) children.add(child) } .... .... } 为什么很多人这样判断流的末尾 C/S项目架构设计----求助 swing做圆角的JFrame 在button组件里面画一个椭圆形成新的button组件 如何用java从键盘读取一个字符而不用敲回车? Calendar的问题,急!!!!!!!!! a question about "byte" 如何在自定义标签类中访问SPRING? 有没有自定义的JAVA类,用来判断用户更改了表中的那些字段。 想考scjp和scjd,请考过的朋友指点一些 问:关于substring()的一道题 ****高分请教一个方法???????有关树结点的问题!!!
那取出来怎么操作呢 ?
谢谢 !
class tree {
Arraylist children = new Arraylist() { tree1,tree2....tree3 }
Object data;
// some methods about tree operation void addChild(tree child){
if ( !children.contains(child) ) children.add(child)
}
....
.... }