Search:

Type: Posts; User: billias

Search: Search took 0.27 seconds.

  1. Re: Help with Scanner class - Reading Data from a file

    Finally solution found using the split() method of the String class (in addition to the Scanner class) as follows:

    public static LinkedList<GymMembers> readFile() throws FileNotFoundException...
  2. Re: Help with Scanner class - Reading Data from a file

    This is what I get when lName and fName is printed:

    lName=Smith
    fName=Smith
    lName=62
    Mary
    fName=62
    Mary
    lName=1.65
    fName=1.65
  3. Re: Help with Scanner class - Reading Data from a file

    Thank you norm for your help

    I have done what you suggested and I receive the following:
    Joan Smith
    1.68 62
    Mary
    Williams 1.65
    78
    Martin Jones
    1.83 62
  4. Help with Scanner class - Reading Data from a file

    I am trying to read from a file the following data:

    Joan Smith 1.68 62
    Mary Williams 1.65 78
    Martin Jones 1.83 62
    Henry Davies 1.92 145
    Nigel Brown 1.75 50

    So I wrote the following code:
Results 1 to 4 of 4