Join Patrick Royal for an in-depth discussion in this video My solution: Reading CSV files, part of Code Clinic: Java.
- The first major task in this code clinic…is to convert the CSV files into a format…that can be used within your Java code.…We need an easy way to reference each item…in the CSV file with its row and column data,…and we need to be able to get the text…for the different items in a useful format.…The first thing we should do is take a look at…how the CSV file is organized.…By default, if we try to open the CSV file,…which is contained in Files, assets, and then first semester…or second semester, it's going to open in an Excel document.…
But this applies a lot of extra formatting…that is unnecessary and distracting for our purposes.…Instead, right-click on the file and go to Open With,…and choose some form of text editor.…You could use WordPad if you're on Windows,…or TextEdit or TextWrangler if you're on a Mac.…Here you can see how the CSV file is formatted.…The text is divided into two columns by the commas…and then separated into rows by new line characters.…This is a fairly standard format for a CSV file,…
Patrick introduces challenges and provide an overview of his solutions in Java. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
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
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
Problem One: Exploring Lake Pend Oreille
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- 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.