So I was looking over some Java code and stumbled upon:
List extends SomeObject> l;
basically this list accepts all objects that ar
List extends SomeObject> l; is not accepting new SomeObject() but List l; does.
new SomeObject()
List l;
what is also not working: List l = new ArrayList()
List l = new ArrayList()
what is working: List extends SomeObject> l = new ArrayList()
List extends SomeObject> l = new ArrayList()