ファイル名は、ファイルを決定するのjavaフォルダのリストがあります

//判断某个文件列表中是否有FileName文件夹
	private static boolean DetermineIfThereIsSomeFile(File[] children, String FileName) {
		for (File file : children) {
			if(file.getName().equals(FileName)) {
				return true;
			};
		}
		return false;
	}

 

 
公開された217元の記事 ウォン称賛7 ビュー50000 +

おすすめ

転載: blog.csdn.net/Hodors/article/details/103121105