在截取字符串的时候,

final String str = "http://172.26.1.1/IMG/USER/AVATAR/090214/676.jpg";
         String[] s = str.split("\\.");
        System.out.println(s.length);

此处的dot应该要使用转义才行

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-09-24
  • 2021-12-04
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案