I have a rather perplexing problem. I am programming for Android and I am trying to get the combinations of a set of integers. I have written out the code to generate the combos, and I track it with the remote debugger and it seems to be working correctly. It works by putting each new combo in a stack. However, every combo in the stack is being updated with each change of the active array that is being altered and committed to the stack repeatedly in multiple forms. I believe the problem relates to my new combos containing pointers to the original array rather than copies of the array's contents at the time of the combo's creation. However, I am not sure how to fix the problem.I have a rather perplexing problem. I am progra