so I have these four classes/interface:
public class Box <S extends SomeClass> implements Comparable <Box<S>> {...}
public interface SomeClass <T extends Comparable<T>> {...}
public class ThisItem implements SomeClass {...}
public class OtherItem implements SomeClass {...}
And I am trying to create a list of Box that holds a list of instances of ThisItem. I'm unsure as to why this is giving me an error.
public ArrayList<ArrayList<Box>> variable = new ArrayList<ArrayList<Box>>();
this.variable.add(new ArrayList<Box<ThisItem>>(5));