public  static  void  main(String[] args){
        String str="护肤,药品,其他";
        String temp[];
        temp=str.split(",");
        for (String s : temp) {
            System.out.println("s: "+s);
        }

    }

将 str中的字符按照“,”分割

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2021-10-15
  • 2022-12-23
  • 2021-12-23
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-11-29
  • 2021-12-20
相关资源
相似解决方案