code: private static void print(String kind, File[] f) {
          System.out.println(kind);
          for (File element : f) {
              System.out.println(getComparable(element));
          }
          System.out.println();
      }
docs: for testing via main