split a string java by comma code example
Example 1: java break string at comma
String[] brokenLine = line.split("[,]");
Example 2: separate string by comma java
String names = "prappo,prince";
String[] namesList = names.split(",");
String[] brokenLine = line.split("[,]");
String names = "prappo,prince";
String[] namesList = names.split(",");