String str = 蕋"

try { int a = Integer.parseInt(str) } catch (NumberFormatException e) { e.printStackTrace() } 如果可以转换,就是数字,如果有异常,就不是