public void enqueue(Object obj)
{
if(count == size)
throw new ContainerFullException();
else
{
array[rear] = obj;
rear = (rear + 1) % size;
count++;
}
}
this is a code that add and object to a circular array.at the start the array is empty,rear=front=0.
when we add the first element rear=1,front=0.
does the front points to null?