Search:

Type: Posts; User: new2.java

Search: Search took 0.16 seconds.

  1. Replies
    9
    Views
    1,537

    Re: New help using Vector class

    8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
  2. Replies
    9
    Views
    1,537

    Re: New help using Vector class

    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.



    ...
  3. Replies
    9
    Views
    1,537

    Re: New help using Vector class

    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...
  4. Replies
    9
    Views
    1,537

    Re: New help using Vector class

    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...
  5. Replies
    9
    Views
    1,537

    New help using Vector class

    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...
Results 1 to 5 of 5