问题:
Which gets the name of the parent directory file “file.txt”?()
A . String name= File.getParentName(“file.txt”);
B . String name= (new File(“file.txt”)).getParent();
C . String name = (new File(“file.txt”)).getParentName();
D . String name= (new File(“file.txt”)).getParentFile();
E . Directory dir=(new File (“file.txt”)).getParentDir(); String name= dir.getName();
Which gets the name of the parent directory file “file.txt”?()
● 参考解析
本题暂无解析
相关内容
相关标签