Originally posted by Diego Klappenbach:
I had finally came up with a small method that I could use in increasingly bigger for loops to initialize all the numbers in the array. The method worked fine for numbers up to about 400,000...
Originally posted by Greg Neef:
the kind of hints you get from the NitPickeres (who shall remain nameless) such as "There is a better way to do this" (I loved that one!) . :roll:
Originally posted by Dirk Schreckmann:
then I got following complaint from the compiler
Note that you probably didn't get an OutOfMemoryError from the compiler. It likely happened at runtimej, so the JRE was doing the complaining.
OutOfMemoryErrors can happen when something like a for loop never terminates.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton