classlist reset code example
Example: class list contains class java
List hand = ...;
for(Card card : hand){
if (card instanceof AceOfDiamonds) return true;
}
List hand = ...;
for(Card card : hand){
if (card instanceof AceOfDiamonds) return true;
}