java 判断某个文件列表中是否有FileName文件夹

//判断某个文件列表中是否有FileName文件夹
	private static boolean DetermineIfThereIsSomeFile(File[] children, String FileName) {
		for (File file : children) {
			if(file.getName().equals(FileName)) {
				return true;
			};
		}
		return false;
	}
 
发布了217 篇原创文章 · 获赞 7 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/Hodors/article/details/103121105
今日推荐