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