How To Read CSV file using java

CSV is a delimited file. Delimiter can be a comma, period etc. We are using CSV file to write logs of Test Automation Frameworks in TestNG and Selenium frameworks. CSV file can look like Spreadsheets or a simple text file like below. We will see how we can read contents from this type of file. We will use split method to split cells of the file.