System.out.println(str.matches("(\\-|\\+)?[1-9]{1}\\d*"));

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-02-21
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-11-11
  • 2022-02-05
  • 2021-05-23
相关资源
相似解决方案