I tried that before, I don't know why that didn't work.
Type: Posts; User: miss confused
I tried that before, I don't know why that didn't work.
If my code:
public void sortArray () {
int beginP = 0;
int endP = myArray.length-1;
while(beginP<endP){
if((myArray[beginP]!=GREEN) && (myArray[endP]!=BLUE)){
swap(beginP, endP);
}