java count files in a 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);