I have a problem that this object can be one of several different objects (for example, files in a directory that can be sound, images, text, ...) Is there any way to find out the type of object next to the instanceof operator? Couse, which will result in an endless if-then line ...
java
machine
source share