'new File' is redundant

前端 未结 0 1704
我在风中等你
我在风中等你 2020-12-07 04:16

I have the following code:

try(ObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(new File("users.dat")))){
    o.writeObject(users);
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题