This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am looking to increment the integer variable 'none' for every color that exists in board, but does not exist in useCode.
When you say "for every color that exists in board" do you mean exists in any of the rows in board? Or a specific row?
I need a way to compare the two arrays
Can you elaborate on what you mean by "compare the two arrays". Since one is a two dimensional array, and the other is not, you can't directly compare the arrays. So they can never be "equal".
Are you trying to determine if a row array from the board 2D Array matches the useCode array in that they both have the same colors? And if so, do the four colors in each array need to be in the same order? Or just that each array contains the same colors? And then do you need to do that for each row?
I think it would be helpful to post more details about the problem. Perhaps post the full problem statement and directions. I think it will be easier then to point you in the right direction.
Also, just so we can guide you correctly... this sounds like it might be an assignment from a programming class. If so, do the directions explicitly state you must use arrays to solve the problem? Have you learned about other data collections yet?