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