Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Re: Rather beginner level programming; need assistance.

    Its only executing what is inside the if statement once every 10000 times on cntr's value change
  2. Re: Rather beginner level programming; need assistance.

    Have you computed how many loops the code will make?
  3. Re: Rather beginner level programming; need assistance.

    Why do you think the code is "freezing"?
    Add the println I suggested and see if the code continues to print something or if it stops printing (freezes)


    If the 10000 is too small and creates too...
  4. Re: Rather beginner level programming; need assistance.

    To get messages printed as the code executes the loops, add a counter and if statement to print a message every so often:

    int cntr = 0; // define counter outside the loops
    ....
    // inside the...
  5. Re: Rather beginner level programming; need assistance.

    How many times does the third case execute the inside of the inner loops?

    Are the timings in millisecs not nanosecs?

    One thing the code should do is print out the values returned by the...
  6. Re: Rather beginner level programming; need assistance.

    Please copy the full text of the error messages and post it here. It will show the source line where the error happens.


    Try moving the main() method from the driver class to the Algorithm class...
  7. Re: Rather beginner level programming; need assistance.

    Please explain what the problems are.
  8. Re: Rather beginner level programming; need assistance.

    You should close the files (call the close method) when you have finished writing records to the files.
    If you don't close them there is a chance that all the records won't be written to the files....
  9. Re: Rather beginner level programming; need assistance.

    Where do you close the files after writing to them?
  10. Re: Rather beginner level programming; need assistance.

    One comment: Where do you close the files after writing to them?

    Where is the main() method to execute the class?
Results 1 to 10 of 10