Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The import java.util.scanner cannot be resolved error

Status
Not open for further replies.

malibu65k

Programmer
Sep 27, 2004
131
0
0
US
I've looked for hours all over the internet and tried everything. Nothing I tried is working. I can't figure out why I keep getting this error. I cannot work forward until I get this resolved. Any help will be greatly appreciated.
 
What Java version are you using?
What IDE are you using?
Show some (simple) code displaying the issue?
 
JDK 7u4
JRE 7u4

on windows 7 and I'm using Eclipse

line with the error message...

import java.util.scanner

apparantly this is needed to do many things so I really need to get past this.

Thanks!!
 
import java.util.scanner is invalid, because Scanner must be written with a capital "S"
import java.util.Scanner is value

 
Sorry, I was a bit too fast it should read

the line "import java.util.scanner" is invalid, because Scanner must be written with a capital "S"

Valid is:
import java.util.Scanner
 
If you're using Eclipse, try code completion (Ctrl + Space) or Quick Fix (Ctrl + 1)

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top