The below code works fine in Java 8.
files.addAll(Arrays.asList(folder.listFiles((f) -> f.getName()
.endsWith(CustomConstantsRepository.FILE_EXT_DAT)
&& f.getName().startsWith(fileName))));
I need the same functionality to work in Java 7.
Thanks in advance.