BubbleSort values greater than zero leaving any zeros at the end of array;
Hi, if I have the following Array:
tide = new Array(8,4,3,9,0,0,12,0);
Currently if I do a bubbleSort I end up with this:
0,0,0,3,4,8,9,12;
I do no know how to bubbleSort the Array to remove the zeros at the start and end up with them at the back of the array:
3,4,8,9,12,0,0,0;
Any help would be good thanks in advance.