Here is my array:
int[] myArray = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
Let's say I want to move myArray [3] (it can be any element) and myArray [6] (the same with this) to the front of the array when rearranging, how can I do this? Example:
It:
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
In it:
{3, 6, 0, 1, 2, 4, 5, 7, 8, 9}
source share