The below code shows hot to read the list of resources(files) from a classpath folder and subfolder.Below is the example code
import java.io.*;
import java.net.URL;
import java.nio.file.Files;
import java.util.*;
public class ReadResourceFiles {
public static void main(String[] args) throws IOException {
...