I found the problem.
I modified my Add and remove-methods. No problems with the equals-method :)
It works - the output is: Success.
Success!!!
And thank you for your help! ;)
Type: Posts; User: kiiliikii
I found the problem.
I modified my Add and remove-methods. No problems with the equals-method :)
It works - the output is: Success.
Success!!!
And thank you for your help! ;)
Do any of you see what the problem is?
Oh wait.
It has to be VM arguments, ofcourse.
Now; "Failed test 3!" xD
So i guess there's a problem with my equals then :/
893
Is that correct?
I wrote "-ea" at Program arguments for my Test-class,
and when I run the program I still get the same fail-output :/
I have a class for my MultiSet<E>, and an associated test-program.
My class is a follows:
public class MultiSet<E> extends AbstractCollection<E>
{
private int size = 0;
private Map<E,...