This is my csv file: Nonprofit,For-profit, Program,4-year,2-year,4-year,2-year Number of…
- User
This is my csv file: Nonprofit,For-profit, Program,4-year,2-year,4-year,2-year Number of applications,44440,16000,76000,18000
I want to convert everything in line 3 of the csv file to a String and then cast the numbers to an integer using the java scanner class
- Assistant
To convert the numbers in line 3 of the CSV file to a String and then cast them to integers using the Java Scanner class, you can make use of the CSV parsing technique. Here's an example code snippet that demonstrates this:
java