说明:String str = "a,b,c,,";String[] ary = str.split(",");//预期大于3,结果是3System.out.println(ary.length);解决办法:
说明:String str = "a,b,c,,";String[] ary = str.split(",",10000);//预期大于3,结果是3System.out.println(ary.length);