public class test { public static void main(String[] args){ String str = ""; System.out.println(str.length()); System.out.println(str.split(",").length); System.out.println(str.split(",")[0]); System.out.println(“Over!”); } }
输出为:
0
1
Over!
本文共 340 字,大约阅读时间需要 1 分钟。
public class test { public static void main(String[] args){ String str = ""; System.out.println(str.length()); System.out.println(str.split(",").length); System.out.println(str.split(",")[0]); System.out.println(“Over!”); } }
输出为:
0
1
Over!
转载于:https://www.cnblogs.com/jixiegongdi/p/10703432.html