convert string to arraylist in java

前端 未结 7 990
别跟我提以往
别跟我提以往 2020-12-10 01:03

How to convert a String without separator to an ArrayList.

My String is like this:

String str = \"abcd...\"
         


        
7条回答
  •  孤街浪徒
    2020-12-10 01:33

    public static void main(String[] args) {
            // TODO Auto-generated method stub
            String str = "abcd...";
            ArrayList a=new ArrayList();
            for(int i=0;i

提交回复
热议问题