creating a small lottery application, java
<p>I'm a java noob and have been looking all over for some help with how to create this lottery application. I read some examples on this site but some of the code was a bit too advanced for me to actually implement(I'm not sure how O(n) works?) so I thought I'd asked my question here while I keep looking for the answers. </p>

<p>I need to create a really simple application that generates 3 random numbers and compares them with 3 user guesses. The numbers are all single digit but they can be repeating. For example the actual numbers might be 1, 1, 1 and the user may have guessed 1, 2, 3 but the prize money would only match the 1 the user guessed with any 1 in the actual number for a single match. </p>

<p>I just need to compare 2 arrays I guess and account for repeating digits. I tried creating nested if statements but there's 20 or so premutations and it gets out of hand really fast. What would a pro do? </p>

<p>Thanks for any help </p>
