import java.util.ArrayList;
import java.util.List;
public List
String files;
File folder = new File(directory);
File[] listOfFiles = folder.listFiles();
List
for (int i = 0; i < listOfFiles.length; i++)
{
if (listOfFiles[i].isFile())
{
files = listOfFiles[i].getName();
//System.out.println(files);
allFiles.add(files);
}
}
return allFiles;
}
Hiç yorum yok:
Yorum Gönder