package regexx;
public class Test {
public static void main(String[] args) {
String[] ss1 = "ni,hao".split(","); //[ni, hao]
String[] ss2 = "ni,hao,".split(","); //[ni, hao]
String[] ss3 = ",ni,hao".split(","); //[, ni, hao]
String[] ss4 = ",ni,hao,".split(","); //[, ni, hao]
String[] ss5 = "ni,hao,,,,,,,,,,".split(","); //[ni, hao]
String[] ss6 = ",ni,hao,,,,,,,,,".split(","); //[, ni, hao]
}
}
【LET】【JAVA】split()函数
最新推荐文章于 2024-06-27 19:00:00 发布