how to know number of files in a folder in java code example
Example: java count files in folder
File directory=new File("directory path");
int fileCount=directory.list().length;
System.out.println("File Count:"+fileCount);
File directory=new File("directory path");
int fileCount=directory.list().length;
System.out.println("File Count:"+fileCount);