I haven't run it other than with 15 elements and have no timer.
Type: Posts; User: Norm
I haven't run it other than with 15 elements and have no timer.
Glad you found it. I hope you see how using a debug technique like println() can help you find where the code was doing something differently than you expected.
The code had added the same array...
Why does only the line headed by perims: 12: have any numbers on it?
How are you printing the contents of perims? Why does only the line headed by perims: 12: have any numbers on it?
Did you print the contents of perims? Do it after the loops where it is loaded.
What did you see printed out when you tried what I suggested in post #4?
The posted code does not compile without errors. There is an import for a 3rd party package and the java.util.Timer class does not have a start() method.
Suggestion: Change the code to use a...
The first problem I see with the code is that are no comments in it that describe the logic it is using to solve the problem.