For printing it out I was thinking of using while(map. hasNext) { System.out.println("not sure about this bit") ; Would this be an option? What would I put to call it on the println part?