Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Problem getting rid of congruent triangles from a counter.

    I haven't run it other than with 15 elements and have no timer.
  2. Re: Problem getting rid of congruent triangles from a counter.

    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...
  3. Re: Problem getting rid of congruent triangles from a counter.

    Why does only the line headed by perims: 12: have any numbers on it?
  4. Re: Problem getting rid of congruent triangles from a counter.

    How are you printing the contents of perims? Why does only the line headed by perims: 12: have any numbers on it?
  5. Re: Problem getting rid of congruent triangles from a counter.

    Did you print the contents of perims? Do it after the loops where it is loaded.
  6. Re: Problem getting rid of congruent triangles from a counter.

    What did you see printed out when you tried what I suggested in post #4?
  7. Re: Problem getting rid of congruent triangles from a counter.

    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...
  8. Re: Problem getting rid of congruent triangles from a counter.

    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.
Results 1 to 8 of 8