can you do something like:
for (File file : listOfFiles) {
    fileNameList.add(file.getName());
}

I don't know if it is possible, please check