2013-03-13, 13:37
#1
package Inlamningsuppgift;
public interface ISet<AnyType>
{
void add(AnyType elem);
boolean remove(AnyType elem);
boolean isMember(AnyType elem);
int size();
void clear();
ISet<AnyType> union(ISet<AnyType> aSet);
ISet<AnyType> intersection (ISet<AnyType> aSet);
ISet<AnyType> diff(ISet<AnyType> aSet);
AnyType[] getAll(AnyType [] elements);
}
@Override
public Set<AnyType> diff(ISet<AnyType> aSet)
{
return null;
}
Du måste vara medlem för att kunna kommentera
Flashback finansieras genom donationer från våra medlemmar och besökare. Det är med hjälp av dig vi kan fortsätta erbjuda en fri samhällsdebatt. Tack för ditt stöd!
Swish: 123 536 99 96 Bankgiro: 211-4106