📄 readme
字号:
This project requires implementing the FileSystem.javainterface. We have provided the class JavaFileSystem.javawhich implements this interface, although all methodscurrently throw a RuntimeException. Your task is to remove the RuntimeException and add the logic to each method.Your implementation may be tested using the TestFS.javaclass. This class may be invoked by entering the name of oneof the test scripts in the tests directory. For example, to test the script test1.data, you would enterjava TestFS ./tests/test1.dataFurthermore, you may use just a command line interfacein TestFS.java to test specific methods. If you were to enter: java TestFSyou are presented with the following prompt: -->where you may enter one of the commands that are specified inthe test scripts. For example, to format the disk, you would enter: --> formatDisk 10 2To create a file, you would enter --> file = createTo get the inumber of a file, enter: --> inum = inumber fileScan through the test scripts to see how to enter the command specificto each method in the FileSystem interface.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -