0
Numerical filter
How could i know if a given Object is Numerical(Integer,Double..) ???
2 Respostas
+ 5
Object obj1 = 123;
Object obj2 = "abc";
System.out.println(
obj1 instanceof Number
); // true
System.out.println(
obj2 instanceof Number
); //false
0
Martin Taylor My question is if i send an Object to a function as a parameter
How could i know the type of object