Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,188

    Re: Read CSV files and organising the data in Java

    After the code has read a line of text from the file into a String,
    use the split() method to separate the tokens on that line into elements in an array.

    The code should use the nextLine() method...
  2. Replies
    9
    Views
    1,188

    Re: Read CSV files and organising the data in Java

    What happens when it is executed? The output will show you.
    I'd read the file line by line and split the line into parts vs token by token.

    Please edit your post and wrap your code with code...
  3. Replies
    9
    Views
    1,188

    Re: Read CSV files and organising the data in Java

    The String class's split() method would be good with a CSV file.
  4. Replies
    9
    Views
    1,188

    Re: Read CSV files and organising the data in Java

    Divide the program up into several steps.
    Start by reading the file into Strings
    and parsing the Strings into the parts with the different values.
    Make a list of the teams.
    Build the totals...
  5. Replies
    9
    Views
    1,188

    Re: Read CSV files and organising the data in Java

    Also posted at: Read CSV files and organising the data in Java
Results 1 to 5 of 5