Topic: 如果动态实例化 |
Print this page |
1.如果动态实例化 | Copy to clipboard |
Posted by: ansense Posted on: 2005-04-08 16:21 我想用一个循环创建 0bj1到obj100个Object的实例,如何创建? |
2.Re:如果动态实例化 [Re: ansense] | Copy to clipboard |
Posted by: fenglinlly Posted on: 2005-04-10 11:00 可以用数组来装实例 |
3.Re:如果动态实例化 [Re: ansense] | Copy to clipboard |
Posted by: lansoft134300 Posted on: 2005-04-11 09:28 你可以用arrarylist或数组来做都可以 |
4.Re:如果动态实例化 [Re: ansense] | Copy to clipboard |
Posted by: undefined Posted on: 2005-04-14 09:24 public List getObj() { List li = new ArrayList(); for(int i=0;i<100;i++) { Object obj = new Object(); li.add(obj); } return li; } |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |