This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I have looked at the equals method and would I be correct if it returned true if the two objects were the same, in this case the two arrays would have to have the same numbers in the same order for it to return true?
I have created a new int array:
int[] validNumbers = {0,1,2,3,4,5,6,7,8,9};
but now I am struggling to have the method iterate through both arrays.
Syed Ullah
Greenhorn
Joined: Mar 10, 2010
Posts: 9
posted
0
I'm still not quite sure what you are trying to do here. Can you elaborate with some examples?
Why are you defining an array with 0-9 digits. Also, why did you use the OR(||) operator in your
comparison? Should it not be the AND(&&) operator?