code: private void printKeySet() {
      Set<?> keys = keySet();
      System.out.println("printing keyset:");
      for (Object o: keys) {
        //System.out.println(Arrays.asList((Object[]) i.next()));
        System.out.println(o);
      }
    }
docs: below is testing code