it works :D, thought the answer for it was way too easy but screw it it does what its supposed too, thanks guys
Type: Posts; User: jonathanfox
it works :D, thought the answer for it was way too easy but screw it it does what its supposed too, thanks guys
I tried doing that but when i made two sets and gave them values and tried to use the method , it said "cannot return value that is void"
public class match
{
public int match(Set<Integer> myNumbers, Set<Integer> winningNumbers)
{
myNumbers.retainAll(winningNumbers);
return myNumbers.size();
}
}