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()); ).
Type: Posts; User: newbie
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()); ).
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...