public static File[] convertFileCollectionToFileArray(Collection<File> files){
  return files.toArray(new File[files.size()]);
}

public static File [ ] convertFileCollectionToFileArray ( Collection < File > files ) { return files . toArray ( new File [ files . size ( ) ] ) ; }
converts a collection containing java . io . file instanced into array representation . this is to account for the difference between file . listfiles ( ) and fileutils . listfiles ( ) .
