I'm using the BB Plug-In with Eclipse.
I'm currently trying to wrap my head around "Vectors". But the addElement method is producing errors. Every line that has the addElement method on it shows the following errors:
- Syntax error on token(s), misplaced construct(s)
- Syntax error on token "addElement",= expected after this token
This line is in the imports area at the top of my file.
Code:
import java.util.Vector;
Code:
Vector vector = new Vector(3, 2);
vector.addElement(new Integer(1));
vector.addElement(new Integer(2));
vector.addElement(new Integer(3));
vector.addElement(new Integer(4));
Anyone have any ideas? It looks like every Vector example that I've been able to find.
TIA!