Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Java: Read a CSV File into an Array #49

214.5K views on YouTube

$1,500 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE1500. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970h

An easy way to read a CSV file in Java efficiently is with the BufferedReader. We can just use it’s readLine method until the very end and split the file by commas to store it into our String array.

Get the CSV file: https://support.spatialkey.com/spatialkey-sample-csv-data/

I hope this helps you read your csv file in java 🙂 This is GREAT practice for getting your feet wet reading files!

I hope you enjoyed java csv file reader!

Full Java Tutorial For Beginners Playlist: https://youtube.com/playlist?list=PL59LTecnGM1NRUyune3SxzZlYpZezK-oQ&si=6OSbyiJxFsTjqL_9
Free Tips: https://bit.ly/3U6HXcb

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee