public static void main(String[] args) {
  String str = "ABC_001";
  if (str.indexOf("ABC") != -1) {
    System.out.println("包含");
  } else {
    System.out.println("不包含");
  }
}

 

相关文章:

  • 2021-11-21
  • 2022-01-08
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2021-07-06
  • 2021-06-27
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案