Kla*_*sos 14 java integer object
如何确定Object是否为Integer?就像是:
if (obj.isInteger()) {...}
Avi*_*gal 39
if (obj instanceof Integer) {....}
Ran*_*Rag 9
if(ob instanceof Integer) { your code/logic here}
ada*_*ost 5
您可以使用Class.isInstance()方法 - 此方法dynamic相当于Java 语言 instanceof运算符.
dynamic
instanceof
归档时间:
13 年,7 月 前
查看次数:
35254 次
最近记录:
8 年,7 月 前