public static void main(String[] args) {
        String str1=",,a,b,c,";
        String[] arr1 = str1.split(",");
        String[] arr2 = StringUtils.split(str1,",");//org.apache.commons.lang3.StringUtils
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));
    }

這裡寫圖片描述