- #1
Coldie
- 84
- 0
Java's "Scanner"
Hello,
I own a Macintosh and was trying to write a simple Java program for one of my classes. However, I quickly discovered that it appeared that the Mac does not have the Scanner ability. I get an error on the "import java.util.Scanner" line saying
"cannot find symbol
symbol :class scanner
location: package java.util"
If I simply import the whole package, "import java.util.*", then I get the error when I try to use Scanner later. I've already installed Java 2 Standard Edition from Apple's site, which appears to be the most up-to-date package, and I'm running 10.4. What do I need to do to get scanner to work?
Thanks,
Coldie
Hello,
I own a Macintosh and was trying to write a simple Java program for one of my classes. However, I quickly discovered that it appeared that the Mac does not have the Scanner ability. I get an error on the "import java.util.Scanner" line saying
"cannot find symbol
symbol :class scanner
location: package java.util"
If I simply import the whole package, "import java.util.*", then I get the error when I try to use Scanner later. I've already installed Java 2 Standard Edition from Apple's site, which appears to be the most up-to-date package, and I'm running 10.4. What do I need to do to get scanner to work?
Thanks,
Coldie