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 could be any element) and myArray[6] (same with this one) to the front of the array while rearranging the back, how can I do this? Example:
This:
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
Into this:
{3, 6, 0, 1, 2, 4, 5, 7, 8, 9}