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