java判断字符串是否全为数字
String str = "032";
boolean isNum = str.matches("[0-9]+");

java判断字符串是否全为英文字母
String str="dhdhdhdj";
boolean isWord=str.matches("[a-zA-Z]+");

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-09-17
  • 2022-12-23
  • 2021-11-12
  • 2022-02-22
相关资源
相似解决方案