public void removeHead ( int total ) { for ( int j = total ; j < size ; j ++ ) { data [ j - total ] = data [ j ] ; } size -= total ; }
Removes the first total elements from the queue . Element total will be the new start of the queue