Results 1 to 2 of 2
  1. #1
    silvia is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Using the scanner method

    I seem to have these problems with being able to read files using the scanner method.
    If anyone could help me it would be great. Again the original code was in pseudocode so i need to convert it to java.
    Here it is,please can someone show me how to do this using the scanner method.

    Java Code:
    Module 6 : acceptData
    IN : MonthNum, FileName
    OUT : ---
    6.1 Display MonthName[MonthNum]
    6.2 Read Rainfall[MonthNum] from FileName
    6.3 Display Rainfall[MonthNum]
    6.4 Read MaxTemp[MonthNum] and MaxDay[MonthNum] from FileName
    6.3 Display MaxTemp[MonthNum] and MaxDay[MonthNum]
    6.6 Read SunHours[MonthNum] from FileName
    6.5 Display SunHours[MonthNum]

  2. #2
    barney is offline Member
    Join Date
    Jul 2007
    Rep Power


    Learn to read the API docs. They're going to be your best friends soon.

    (there's a simple example there)

Similar Threads

  1. Tokenizing with Scanner
    By sireesha in forum New To Java
    Replies: 3
    Last Post: 02-05-2008, 09:44 PM
  2. MixedTypeInput example (Scanner)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-18-2008, 03:11 PM
  3. Scanner class
    By ajaymenon.k in forum Advanced Java
    Replies: 1
    Last Post: 11-26-2007, 08:01 AM
  4. help with IP scanner
    By tommy in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:00 PM
  5. JDK 5.0 Scanner Class
    By Sircedric88 in forum New To Java
    Replies: 3
    Last Post: 07-27-2007, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts