The equals() method is for any and all classes.
Type: Posts; User: Norm
The equals() method is for any and all classes.
What is done with the value of the next guess?
Can you post the current version of the code?
Remember the range of indexes for an array is 0 to the array length-1
If you know how many digits, store them in reverse order: indexing from 3 to 0 vs 0 to 3
Does that do what you want?
An easy way to print the contents of an array for debugging:
System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
When you print values for debugging you need to add a label with the number so you know what variable's value is being printed. The long list of numbers that were printed are very hard to use.
Also...
Add an else statement at the end of the if/else if chain that prints out the values of the variables so you can see why neither of the preceding if statements were true,