I think with the full path to Scanner it used that version, but with the * it used your version of Scanner.
In general it is a bad idea to name your class the same as a Java SE class.
Add a...
Type: Posts; User: Norm
I think with the full path to Scanner it used that version, but with the * it used your version of Scanner.
In general it is a bad idea to name your class the same as a Java SE class.
Add a...
Please Edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Do you have a file named Scanner.java? That could confuse the compiler.