Boa tarde a todos, amigos não estou conseguindo corrigir o erro nesse código, da uma mensagem falando main não ativo!
public class Fila
{
private Object[] buffer;
private int maxCount;
private int count;
public Fila()
{
maxCount = 50;
count = 0;
buffer = new Object[maxCount];
}
public void enqueue(Object Item) throws Exception
{
if(count < maxCount)
{
buffer[count] = Item;
count++;
} else
throw new Exception(“Fila cheia”);
}
public Object dequeue() throws Exception
{
Object res;
if(count > 0)
{
res = buffer[0];
for(int i = 1; i < count; i++)
buffer[i -1] = buffer[i];
count--;
return res;
} else
throw new Exception("Fila vazia");
}
public int getCount()
{
return count;
}
}
