网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?()

A.Vectorfilelist=((Directory)file).getList();

B.String[]filelist=file.directory();

C.Enumerationfilelist=file.contents();

D.String[]filelist=file.list();

E.Vectorfilelist=(newDirectory(file)).files();


参考答案

更多 “ GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?() A.Vectorfilelist=((Directory)file).getList();B.String[]filelist=file.directory();C.Enumerationfilelist=file.contents();D.String[]filelist=file.list();E.Vectorfilelist=(newDirectory(file)).files(); ” 相关考题