why does the line where I sort the arraylist result in an "Unchecked Warning" ? And what would be the best practice to not have these warnings?
public Boolean isYahtzee(ArrayList<Dice> dices){
Collections.sort(dices);
if(dices.get(0).getValue() == dices.get(4).getValue()){
return true;
}else{
return false;
}
}


Sign In
Create Account


Back to top









