protected String printList ( ) { String output = "[" ; SimpleEntry pointer = first ; int counter = 0 ; while ( ( pointer != null ) && ( counter < 3 ) ) { output += "@" + Integer . toHexString ( pointer . hashCode ( ) ) ; pointer = pointer . next ; if ( pointer != null ) output += ", " ; counter ++ ; } if ( pointer != null ) { output += "..., @" + Integer . toHexString ( last . hashCode ( ) ) + "]" ; } else output += "]" ; return output ; }
Return the first and last entries in the list