package string;

import java.util.Arrays;

/**
 * @Author: yoyo
 * @Description:
 * @Date: Created in 2019/8/22 11:13
 */
public class StringSplit {
    public static void main(String[] args) {
        String str="";
        String[] array=str.split("/");

        System.out.println(Arrays.toString(array));
        System.out.println(array.length);
    }
}

@@ -40,16 +40,217 @@
 s;%0A%0A/**%0A
+ * Connected to the target VM, address: '127.0.0.1:61351', transport: 'socket'%0A * %5B1, 2, 3%5D%0A * 3%0A * Disconnected from the target VM, address: '127.0.0.1:61351', transport: 'socket'%0A * %5B1, 2,3%5D%0A * 2%0A *%0A
  * @Auth
@@ -410,10 +410,17 @@
  str
-=%22
+ = %221,2,3
 %22;%0A 
@@ -440,17 +440,19 @@
 %5B%5D array
-=
+ = 
 str.spli
@@ -458,12 +458,56 @@
 it(%22
-/
+,
 %22);
+%0A        String%5B%5D limit = str.split(%22,%22, 2);
 %0A%0A  
@@ -598,16 +598,110 @@
 ength);%0A
+        System.out.println(Arrays.toString(limit));%0A        System.out.println(limit.length);%0A
     %7D%0A%7D%0A

string split