11智能在线
新记
java如何判断一个数是不是整数
如题所述
举报该文章
其他看法
第1个回答 2016-12-22
if (x instanceof Integer || x instanceof Long) {
//是整数
}else {
//不是整数
}本回答被提问者采纳
相似回答
大家正在搜
相关问题
java如何判断一个数是不是整数?
java如何判断一个数是不是整数
java中怎样能判断一个数是整数
java 的 一个 如何 判断输入的数 是否为整数的 语句
java判断一个数是不是正整数
java判断一个数是不是整数
在java中如何判断一个数是整数有没有函数
java中判断输入的是否是整数