Diviser la chaîne en un tableau de chaîne
public class MyClass {
public static void main(String args[]) {
String data = "1,2,3,,5,6,,";
String[] split = data.split(",", -1);
for (int i=0; i<split.length; i++)
System.out.println(split[i]);
System.out.println("Done");
}
}
Purple Team