public static boolean doesFileExist(String[] directories, String filename) { (1)_______ for (String dir : directories ) { (2)_______ } (3)_______ (4)_______ }
path = path.getSubdirectory(dir); String path = ""; return file.exists(); path = new File(path, dir); return ! file.isNew(); path = path.getFile(filename); returnpath.isFile(); File path = new File(File.separator); return(file ! = null); File path = new File(""); File file = new File(path, filename); path = path + File.separator + dir;
1. path = new File(path, dir);2. return(file ! = null);3. path = path + File.separator + dir;4. returnpath.isFile();
1. String path=” “;2. path=path+File.separator+dir;3. File file=new File(path,filename);4. return file.exists();
1. path = path.getSubdirectory(dir);2. File path = new File("");3. return ! file.isNew();4. String path = "";
1. return(file ! = null);2. path = path.getFile(filename);3. path = path + File.separator + dir;4. path = path.getSubdirectory(dir)