String b = "b";
Vector a = new Vector(10);
a.add(5, b);
I just want to add b to the position 5 at the vector, but how come I got an Indexoutofbound error?
How can I fix this? Thanks.
收錄日期: 2021-05-01 14:17:15
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20121126025212AAQ209b