scjp拖放题,高手来帮帮忙啊~
The doesFileExist method takes an array of directory names representing a path from the root filesystem and a file name. The method returns true if the file exists,falst if does not.
Place the code fragments in position to complete this method.
____________
for(String dir:directories){
____________
}
____________
____________
}
所有提供选项:
path=path.getSubdirectory(dir); return !file.isNew();
return (file!=null); String path= " ";
path=path.getFile(filename); File path=new File( " ");
return file.exists(); return path is file();
File file=new File(path,filename); path=new File(path,dir);
File path=new File(File.separator); path=path +File.separator+dir;
------解决方案--------------------SCJP现在考这种题了?不是都是选择题的吗?
------解决方案--------------------你的题目好像给的不全哦,至少括号都不能匹配……
选项是要都用上?
每一条横线填一条语句?