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.
- Find the trip of longest duration.
- 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.