import java.util.regex.Pattern
      import java.util.regex.Matcher

        public boolean isNumeric(String str)
      {
            Pattern pattern = Pattern.compile("[0-9]*");
            Matcher isNum = pattern.matcher(str);
            if( !isNum.matches() )
            {
                  return false;
            }
            return true;
      }

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2022-02-25
  • 2022-02-04
  • 2022-02-17
  • 2021-07-30
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
相关资源
相似解决方案