java.util.scanner

I'm brand new to Java and trying to learn. My class requires I use BlueJ with j2sdk1.4.2_5. I'm trying to write a simple program from my text book. The compiler returns, "cannot resolve symbol - class Scanner".

The code that it's hung up on is:import java.util.Scanner;.....which is right from the book.

Not sure if I'm missing part of the download, incorrect syntax, or something else. I apologize for my ignorance on the subject but would appreciate any help.

Thanks,

Sandy

[518 byte] By [Sandy25] at [2007-9-30 15:59:36]
# 1

You're coding programs to Java version 1.5 (beta) but you are using a Java version (1.4.2_05) that doesn't have support for the Scanner class. You need to download 1.5, or not use that class.

Go to http://java.sun.com and look at the Popular Downloads box for it.

I advise you to uninstall 1.4.2_05 before installing 1.5

ChuckBing at 2007-7-5 23:28:32 > top of Java-index,Administration Tools,Sun Connection...