code: public static File[] pathNamesToFiles(String... names) {
          File[] files = new File[names.length];
          for (int i = 0; i < files.length; i++) {
              String pathname = names[i];
              if (pathname != null) {
                  files[i] = new File(pathname);
              }
          }
          return files;
      }
docs: Constructs an array of {@link File} objects from a given {@link String}
  array
  
  @param names
  the names to convert
  @return the file object array