String str5 = "293陕西力拓888";
System.out.println(str5.startsWith("293"));
System.out.println(str5.endsWith("888"));
if(str5.startsWith("293")) {
System.out.println("293陕西力拓888"+"以293开头");
}
if(str5.endsWith("888")) {
System.out.println("293陕西力拓888"+"以888结尾");
}

}

相关文章:

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