First off i am super sorry that i have no code for this. That is simply because i have yet to wrap my mind around the concept.
I would like to be able to write a small java program that can take an ordered list of any number such that the list is 1 through number. Say for instance my number is 9. I would like this list to be 123456789 then i would like to create a program that creates EVERY possible combination of these 9 numbers. say for instance another combination would be 923456781.
Im going to be honest, i have no clue as how to even approach this.
I’d generate the first number as a string, 123456789, and then permute it.
See https://stackoverflow.com/a/12252782/509840 for permutations.