test2
/** * 获取图片名称 * @param folderName * @return */ public static List<String> getFolderJPGFileName(String folderName){ List<String> list_name = new ArrayList<String>(); String[] list_fileNames = null; File dir = new File(folderName); if(!dir.isDirectory()) { return list_name; } list_fileNames = dir.list(); for(String indexFileName:list_fileNames) { list_name.add(indexFileName); } return list_name; }
######################
QQ 3087438119