if(newArray[j] != arrSeries[i-1]);

That semi-colon at the end of your "if()" statement is making that statement do nothing.