1try(BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("yourFile.csv"),StandardCharsets.UTF_8))){
2 String line;
3 while((line=br.readLine())!=null){
4 String[] split=line.split(",");
5 //use the data here
6 }
7}