Can someone tell me how can i read csv file by each row and column wise in java without using external jars.
I have tried the below code but here i am able to read only one column at a time.
public class ParseCSVs{
public static void main(String[] args) throws Exception {
File file = new File("./input//SIMNumbers.csv");
List<String> lines = Files.readAllLines(file.toPath(),StandardCharsets.UTF_8);
for (String line : lines) {
String[] array = line.split(",");
System.out.println(array[2]);
}
}}
Thanks in advance.