CSV files

icon picker
council CSV example

demonstration of reading a CSV file into parallel arrays
@council csv data
The project on this page demonstrates how CSV data can be "parsed" by a java program.

developer task

study the project notes on this page to understand how to read values from a CSV file
fork the project and test the code
you should have read the general notes about reading a CSV file

program requirement: read a CSV file (example)

read the list of value pairs and display them
each pair includes a Scottish council area and the number of voters in the area

output will look like this

CSV file input

the input file will contain values like this
A CSV file will look like this (to the program)

program code


Loading…
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.