If I have the next array:
int[] arr = { 123, 243, 0, 0, 123, 0, 0, 0, 123 };
How can I move all the values which are not equal to 0 left as they can so the array will be built like this:
int[] arr = { 123, 243, 123, 123, 0, 0, 0, 0, 0 };
Thanks!