JavaHelpersQueueNodeBinNode
JavaHelpersQueueNodeBinNode
import java.util.*;
public T getValue() {
return value;
}
public T getValue() {
return this.value;
}
public Queue() {
this.first = null;
this.last = null;
}
public T remove() {
T x = first.getValue();
first = first.getNext();
if (first == null)
last = null;
return x;
}
public T top() {
return first.getValue();
}