java count number of files in directory 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);