Multiple classes in an (undefined) ArrayList?

@quark :

Can I ask the object which type it is?


    println(someObject.getType());