Java tutorial
//package com.java2s; import java.io.File; public class Main { private static boolean CheckRootingFiles(File... file) { boolean result = false; for (File f : file) { if (f != null && f.exists() && f.isFile()) { result = true; break; } else { result = false; } } return result; } }