title: Creating all possible ways of a boolean array of size n?
body: <p>I need to be able to create a boolean array of one combination and run it through a program to see if it works. If not then I dispose of it and go to the next combination. My issue is that I don't know how to create this array because n can be equal anywhere from 1-1000. So I was planning on using Integer.toBinaryString but that won't work due to its too big when it gets to past 32.
  Any help would be greatful.</p>
  
  <p>Thanks!</p>