the method is to delete any numbers that appear twice in the array. im getting an error in the return statement. help
int x = 0;
  for(int i = 0; i < array.length; i++);
  {
     if(i == 0 || array[i] != array[i-1])
     {
        array[x++] = array[i];                      
     }    
  }
  return x;
 
     
    