Search:

Type: Posts; User: newbie

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    6,339

    Re: user input strings to vectors

    String temp = console.nextLine();
    Is wrong because your Scanner object is called scanner not console.

    Secondly, Remove the last bracket from
    System.out.println(vec.toString()); ).
  2. Replies
    9
    Views
    6,339

    Re: user input strings to vectors

    Here's a neat and simple guide I just found:
    How-To-Use Scanner
    For the above, what you're after would be towards the bottom of the page mostly.
    Additionally, It wouldn't hurt to read the API for...
Results 1 to 2 of 2