how to count files in a folder 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);