e****y 发帖数: 26 | 1 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. | g*****g 发帖数: 34805 | 2 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.
| e****y 发帖数: 26 | 3 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(); : }
|
|