public static void main(String[] args) throws SQLException {
        String str1 = "阿迪达斯adidas neo VS JOG男女休闲鞋DB0466EH1696EH1698EH1699";
        String[] s = str1.split("");
        for(String each : s) {
            System.out.println(each);
        }
    }
public static void main(String[] args) throws SQLException {
        String str1 = "阿迪达斯adidas neo VS JOG男女休闲鞋DB0466EH1696EH1698EH1699";
         int length = str1.length();
         String[] arr2 = new String[length];
         for(int i=0; i<length; i++) {
             arr2[i] = str1.charAt(i) + "";
             System.out.println(arr2[i]);
         }
         System.out.println(arr2.length);     
    }

原址:https://www.cnblogs.com/qilin20/p/12354867.html

posted on 2020-06-01 14:41  英勇博客  阅读(929)  评论(0编辑  收藏  举报