save changes (permanently) in an arraylist?

前端 未结 4 1959
北荒
北荒 2021-01-27 06:25

Is that possible? Like for example, a user added a new item/element into the arraylist (bufferedreader process) and surely, there would be changes happen. My question is that is

4条回答
  •  温柔的废话
    2021-01-27 07:23

    If I understand you aren't allowed to use a text file to store your data in CSV format, maybe Serialization/Deserialization is what you, or your teacher ;-), want or wants you to do.

    Read about ObjectOutputStream and ObjectInputStream and try your best. Here's a little example.

提交回复
热议问题