code: public static String[] getArrayOfNames(Map< String, Dependency> dependencies) {
          List<String> nameList = new LinkedList<String>();
  
          for (Dependency dependency : dependencies.values()) {
              nameList.add(dependency.getName());
          }
  
          return nameList.toArray(new String[nameList.size()]);
      }
docs: Returns an array of String with the name of every dependency from a list of dependencies.
  @param dependencies    List of dependencies
  @return String[] with all names of the dependencies