public String printQueue(){
  StringBuilder result=new StringBuilder();
  result.append("[");
  LirsEntry e=queueFront();
  if (e != null) {
    result.append(e);
    for (e=e.nextInQueue; e != header; e=e.nextInQueue) {
      result.append(", " + e);
    }
  }
  result.append("]");
  return result.toString();
}

public String printQueue ( ) { StringBuilder result = new StringBuilder ( ) ; result . append ( "[" ) ; LirsEntry e = queueFront ( ) ; if ( e != null ) { result . append ( e ) ; for ( e = e . nextInQueue ; e != header ; e = e . nextInQueue ) { result . append ( ", " + e ) ; } } result . append ( "]" ) ; return result . toString ( ) ; }
returns a string representation of the stack . useful for debugging .
