Normal
Wohoo~ ich habs hinbekommen Ich hab das jetzt so gemacht:[code=Java] public boolean equals(Card2 Karte, Card2 Karte2){ if (Karte2.getWert() == Karte.getWert()){ if (Karte2.getTyp() == Karte.getTyp()){ return true; } else return false; } else return false; [/code]Und nun liefert es mir immer das richtige Ergebnis
Wohoo~ ich habs hinbekommen
Ich hab das jetzt so gemacht:
[code=Java] public boolean equals(Card2 Karte, Card2 Karte2){
if (Karte2.getWert() == Karte.getWert()){
if (Karte2.getTyp() == Karte.getTyp()){
return true;
}
else return false;
[/code]
Und nun liefert es mir immer das richtige Ergebnis