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!

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2022-01-21
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
相关资源
相似解决方案