public static boolean isDigit(String text) { return text.matches("\\d+"); } if (isDigit("info")) { //...... } else { //...... }
50,526
社区成员
85,605
社区内容
加载中
试试用AI创作助手写篇文章吧