Sun Systems JAVA 5.0

I am a professor who uses the Savitch book to teach a CS1 course. We have a license to set up J# in our computer lab and would like to use this software with as little pain as possible. Among other things, Savitch uses the Scanner class which is new to JAVA 1.5 (or JAVA 5.0). You can find this class in the java.util package of the Sun software.

The Scanner class makes life a lot easier for beginning students. I was chagrined to find that the J# I just installed does not have the Scanner class in its java.util package. I would hope that J# 2005 does have this class, because it would take much of the pain away for schools that are using, have been using, or will be using the Savitch book.

The Scanner class is very convenient, removing the pain of dealing with BufferedReader and StringTokenizer objects as well as with methods such as parseInt. Is there relief in sight with J# 2005, or should I start rewriting all my notes and source code samples


Answer this question

Sun Systems JAVA 5.0

  • WondeRu

     Richard Meyers wrote:
    The Scanner class is very convenient, removing the pain of dealing with BufferedReader and StringTokenizer objects as well as with methods such as parseInt. Is there relief in sight with J# 2005, or should I start rewriting all my notes and source code samples


    Hi Richard - unfortunately we do not support the Scanner class for several reasons. Mainly because Java 5 "Tiger" was not announced when we were planning J# 2005. But I believe we have equivelent .NET Framework functionality as well which should be fairly easy for you to incorporate. Have a look at the Regex.Split class for providing this functionality. Here's a URL:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemtextregularexpressionsregexclasssplittopic3.asp

    Brian Keller
    J# Product Manager

  • Sun Systems JAVA 5.0