Search:

Type: Posts; User: javapenguin

Search: Search took 0.13 seconds.

  1. Replies
    9
    Views
    6,372

    Re: user input strings to vectors

    Yes, but get rid of the = in the for loop. It's less than 10.

    Also, after that...tell it

    vec.add(temp);

    inside the for loop and that should do it.
  2. Replies
    9
    Views
    6,372

    Re: user input strings to vectors

    Scanner (Java Platform SE 6)

    Vector (Java Platform SE 6)

    No, a Vector is a generic type of thing.
    Vector<Object> v = new Vector<Object>();

    Vector<Integer> v2 = new Vector<Integer>();

    A...
Results 1 to 2 of 2