Thank you for your reply Anayonkar Shivalkar.
To your points:
1) The loop is set to <=5 because the size of the array must always be int[6] because you must chose 6 numbers to enter a ticket in the UK lottery, but thanks for the advice which would be handy if I wanted to change the game to one that draws less numbers.
Gonna change that for the sake of commonsense, good habbits and reusability. Thanks.
2) 50 is there because the highest available lottery number to choose in the UK is 49. Why I used that over <=49 for the sake of clarity I don't know! Again thanks for the advice, its worth changing to a getGameLimit method that calls a final int to allow reuse. Thanks again.
3) Doh! Will do that, thanks!
From the brief overview of collection/sets I have read they would make things much easier. I'll check out collections and convert what I've done to use them as I learn about them after finishing this as a sort of learning exercise where I ignore that they exist
.
What I am really asking is if there is a better way to check the userNum array with a better loop in the myMatch.assessMatch() method so that I dont check the whole thing each time.
I can't figure out how to do it because I want to start the check after the first number has been entered and only check numbers at positions array[n-1], array[0] and whatever is in between when I check.