8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
Type: Posts; User: new2.java
8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
I'm trying, I really I am I really want to learn this. Can you maybe throw me a bone? I put s1 in the same scope. getting no errors on that. Now I am just getting a out of bounds error.
...
Errors:
Vector list = new Vector(5);
Vector is a raw type. References to generic type Vector<E> should be parameterized
list.set(0,me);
Type safety: The method set(int, Object) belongs to the...
Okay, I tried and this is what I now have.
public class VectorTest
{
public static void main(String [] args)throws IOException
{
// DECLARE AND INSTANTIATE A VECTOR CALLED LIST OF...
New to using Dynamic Data Structures, Vector classes, and ArrayLists.
-I have a read in file named Student.dat
- I have a class called Student
-I have a class with the main method called...