The only other way I could think of is to create a 2d array. I don't know how that effects how much memory is available though.
Type: Posts; User: aesguitar
The only other way I could think of is to create a 2d array. I don't know how that effects how much memory is available though.
Create an arraylist of files containing the permutations, then simply get the required permutations from the containing file.
I saw you were using nested for loops
for(/*conditions blah blah blah*/)
{
for(/*conditions blah blah blah*/)
{
for(/*conditions blah blah blah*/)
{
Ok, what's your purpose is storing the combinations? Are you trying to find the number of combinations or permutations, or are you actually trying to store all the combinations for whatever reason?...
OK, a few things. If you want to store every single possible combination, you're going to have to post specs, specifcally, how much RAM you have. I'll take a guess at 3 gigs. Windows 7 takes about...