Hello to all the smart guys here,
i did my research on this topic and i KNOW it is written somewhere but i cannot find it anywhere (but i know i read about it a few weeks ago)... so here is my question:
With Java 8 it should be possible to use an interface as a collection-type in arrays or lists (not really sure about which one)... is anyone of you able to tell me what´s the name of this functionality is or just give me an abstract or clear example of code?
As far as i can remember the example was like: You have different types of objects that all share the same interface. With this interface it is possible to create a list or array that can store the different object-types.
I would be really happy if someone could help me with that... i really liked what i read there but now i have some sparetime and cannot find where i got this information from.
Thank you in advance!
//edit: Thank you for the fast answer, realSkeptic!!