public print method for linhashmap