Join Carlos Rivas for an in-depth discussion in this video Loading data, part of Code Clinic: Java.
- [Narrator] In order to follow along,…be sure to go to your exercise file folder,…then go to your Starter Projects,…Chapter One,…and open BPTrend, WeatherEntry,…and one of the input data files…in your favorite Java IDE.…In our example, we're using Visual Studio Code.…A significant challenge of this code clinic…is the proper parsing and processing…of large data files.…
The data that you see here is gathered…every few minutes by weather sensors.…These values are collected every few minutes,…so each month's will contain several thousand entries.…We'll be reading four of these files,…totalling over 300 thousand records.…The data is separated by tabs,…and each file contains a header row.…Because of this,…we need logic to ignore that first row.…
Our first job is to parse data in a way…that makes sense to our code challenge.…Take the data that we need,…and ignore the data we don't.…In our program,…we have chosen the Java ArrayList data structure,…which you can see here on line 10.…We're going to use this data structure…to store our data entries.…
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, PHP, Python, and Ruby.
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.