public class IsInteger { private IsInteger(){}; public static boolean isInteger(String value) { try { Integer.parseInt(value); return true; } catch (NumberFormatException e) { return false; } } }
时间: 2024-10-25 06:50:26
public class IsInteger { private IsInteger(){}; public static boolean isInteger(String value) { try { Integer.parseInt(value); return true; } catch (NumberFormatException e) { return false; } } }