How do I create a member that can accept 2 very similar interfaces?
I’ve got currently have 2 classes that do exactly the same, and are differentiated by a single member.
Type mismatch between collection and List
Hi I’m trying to make this method, that given a TreeMap<String,RawMaterial> it should return a list of all the materials but since the RawMaterial is a class that implements an interface called “NutritionalElements” it should return a Collection.
So here is how I tried to code it: