I have this code
public class TupleSpace implements aTupleSpace {
private Collection<aTuple> theSpace;
public TupleSpace() {
theSpace
}
public void out(aTuple v) {
theSpace.add(v);}
the .add causes an error, I think its either because .add is not defined for a generic collection type? or because im not properly understanding the line:
private Collection<aTuple> theSpace;
i have to keep this line the same but can make any changes to the out method or the rest of the class
I just want to be able to add things to a collection and search the collection for them