Its only executing what is inside the if statement once every 10000 times on cntr's value change
Type: Posts; User: Norm
Its only executing what is inside the if statement once every 10000 times on cntr's value change
Have you computed how many loops the code will make?
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...
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...
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...
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...
Please explain what the problems are.
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....
Where do you close the files after writing to them?
One comment: Where do you close the files after writing to them?
Where is the main() method to execute the class?