how to read comma separated file in java code example
Example: how to read comma separated values in java
try(BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("yourFile.csv"),StandardCharsets.UTF_8))){
String line;
while((line=br.readLine())!=null){
String[] split=line.split(",");
//use the data here
}
}