set of string to comma separated string java 8 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
}
}