avatar
Array of vector, help# Java - 爪哇娇娃
j*1
1
【 以下文字转载自 Complain 讨论区 】
发信人: mitbbs (未名空间), 信区: Complain
标 题: Re: [投诉]TrustinJesus版主Dignity两天之内狂删我19篇主题帖
发信站: BBS 未名空间站 (Tue Jun 28 02:58:38 2011, 美东)
由于版内炸版,会引起误删。版主可恢复其误删的帖子
avatar
e*y
2
I use JBuilder8
I wanna declare a array of vector, so i use:
Vector[] tables = new Vector[20];
It seems okay now. But when i try to use like
tables[1]
JBuilder will send error information.
What's wrong? I am not good at java.
Thanks.
avatar
g*g
3
Come on, if you want help, provide detailed info like what the error message
is. Probably because you didn't create Vector though.
for(i=0; i<20; i++){
tables[i] = new Vector();
}

【在 e****y 的大作中提到】
: I use JBuilder8
: I wanna declare a array of vector, so i use:
: Vector[] tables = new Vector[20];
: It seems okay now. But when i try to use like
: tables[1]
: JBuilder will send error information.
: What's wrong? I am not good at java.
: Thanks.

avatar
e*y
4
Got it.3ks

【在 g*****g 的大作中提到】
: Come on, if you want help, provide detailed info like what the error message
: is. Probably because you didn't create Vector though.
: for(i=0; i<20; i++){
: tables[i] = new Vector();
: }

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。