Is it possible to make a method that will take anything, including objects, Integers etc? I have a method checking the value if it is null and I was thinking perhaps it could be done with generics instead of overloading. Unfortunately, trying
nullChecking(Class<? extends Object> value){
...
}
won't allow Integers as they extend Number not object. Is there a way?
Cheers