15. File Divvy

Questions about the Divvy trip database.

Get a subset of Divvy bike trip data. Later you may want the Divvy station data as well.

  1. Find the trip of longest duration.
  2. Find the oldest female rider in this dataset.

Tips

You do not have to store the data in an ArrayList, but if you want to do that, you should make a class BikeInfo that has all of the information contained on one line in the database. Making 12 separate ArrayLists is lots harder to work with.

The Scanner class has a useDelimiter method that can be used to split on things that are not whitespace.

The String class has a split method that can be used in a similar way.

Advanced

Your teacher regularly takes the Divvy to the station right next to school, arriving 7:40-7:50am. See if you can identify any trips in the full dataset.

Last modified August 18, 2023: 2022-2023 End State (7352e87)