Results 1 to 10 of 10

Thread: Get different combinations

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2012
    Posts
    30

    Question Get different combinations

    Example:


    That's 8 different combinations:
    1, X, 1
    1, X, X
    1, 2, 1
    1, 2, X
    X, X, 1
    X, X, X
    X, X, 1
    X, 2, X

    Trying to figure out a way to get the different combinations depending on the Checked checkboxes into an ArrayList. One entry per possible combination (like the example above).
    Note this example is just for 3 games, I will have 13 games in my program so if you click all checkboxes thats 1,6M combinations. Is it really wise to have 1,6M entries in an Array?

    I also want to be able to set demands, like: delete all lines in the Array containing two X.

    Maybe an ArrayList isn't the way to go?

    If you don't have time for code examples please just help me with the thinking
    Last edited by stevefox; Jan 15th, 2012 at 09:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width