6 回答

JackCode
TA贡献37条经验 获得超51个赞
可以使用求余运算符:a%1==0 来判断值是否为整数,返回为boolean值。然后使用Integer的toString().length() 来判断长度。

添加回答
举报
0/150
提交
取消