I am CONVINCED that the reason my program is not working is because I have a faulty linkedqueue, however I cant see what is wrong with it. could someone please look mine over and see whats wrong with it?
Code:
public item_t remove(){
item_t place= rear.item;
//front=null;
//out.printf("%sOMG\n",place);
if(front==null){
front=front.link;
// out.printf("node?");
}
if(front==rear){
//out.printf("node?");
rear=null;
front=null;
}
//front=front.link;
//item_t place= front.item;
//out.printf("PORTAL");
//item_t place= front.item;
return place;
}