I'm confused by your question: are you saying that you have an array of 9 integers in your program, and you want a user to be able to select which values are not copied from the first array to a second array?
Code:
Array 1
0 1 2 3 4 5 6 7 8
-------------------------------------------
| 13 | 27 | 16 | 2 | 9 | 7 | 12 | 66 | 42 |
-------------------------------------------
User selects values 0, 4 and 5
Array 2 becomes
0 1 2 3 4 5
------------------------------
| 27 | 16 | 2 | 12 | 66 | 42 |
------------------------------