• 2022-06-06
    填空使代码编译通过public String getPathName(String fileName) {final Path p =__________ ;return p.getFileName();}I. new File(fileName).toPath()II. new Path(fileName)III. FileSystems.getDefault().getPath(fileName)
    A: A. I 和 II
    B: B. I 和 III
    C: C. II
    D: D. 以上都不是