当前位置: 代码迷 >> J2SE >> scjp拖放题,高手来帮帮忙啊该怎么解决
  详细解决方案

scjp拖放题,高手来帮帮忙啊该怎么解决

热度:149   发布时间:2016-04-24 15:59:45.0
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现在考这种题了?不是都是选择题的吗?
------解决方案--------------------
你的题目好像给的不全哦,至少括号都不能匹配……
选项是要都用上?
每一条横线填一条语句?