java.io.FileNotFoundException when creating FileInputStream

前端 未结 2 1237
北恋
北恋 2021-01-26 11:09

Getting an error when trying to open a FileInputStream to load Map from file with .ser extension.

Constructor where I create new File and invoke method that loa

2条回答
  •  忘掉有多难
    2021-01-26 11:15

    • The path to the file you have given might be wrong for IDE it can take relative path but from the command line, it will take the absolute path.

提交回复
热议问题