如果磁盘上没有perrty.txt文件,创建File对象f时:File f = new File("perrty.txt"),就会在磁盘上创建perrty.txt。

问题遇到的现象和发生背景

如果磁盘上没有perrty.txt文件,创建File对象f时:File f = new File("perrty.txt"),就会在磁盘上创建perrty.txt。

用代码块功能插入代码,请勿粘贴截图