How to ask an object for its class name?
in
Programming Questions
•
1 years ago
I have an array of mixed classes of object.
As I scan sequentially through the array how can I determine the class of each object?
I notice that println(object) has managed to determine it but cannot find a method for me to use.
As I scan sequentially through the array how can I determine the class of each object?
I notice that println(object) has managed to determine it but cannot find a method for me to use.
1