Here you can find the source of getFiles(List
public static List<File> getFiles(List<String> filePaths)
//package com.java2s; import java.io.File; import java.util.ArrayList; import java.util.List; public class Main { public static List<File> getFiles(List<String> filePaths) { List<File> files = new ArrayList<File>(filePaths.size()); for (String path : filePaths) { File file = new File(path); files.add(file);//from w ww . j a v a 2 s . c o m } return files; } }