Here you can find the source of getFileList(File f)
public static List<File> getFileList(File f)
//package com.java2s; import java.io.File; import java.util.ArrayList; import java.util.List; public class Main { public static List<File> getFileList(File f) { List<File> list = new ArrayList<File>(); for (File tmp : f.listFiles()) { list.add(tmp);/* www . jav a2s . c o m*/ } return list; } }