简体   繁体   English

存储数组的值以备将来参考

[英]Storing the values of an array for future refernce

I have an Arraylist , the values of which keep changing. 我有一个Arraylist ,其值不断变化。 These values should be saved because the next time the application opens, the previous values have to be there.Right now I just save it in an list but the next time the values are not saved. 这些值应该被保存,因为下次应用程序打开时,以前的值必须存在。现在我将其保存在列表中,但是下次不保存这些值。 How can I store the values? 如何存储值?

You can store it in a file or a database table. 您可以将其存储在文件或数据库表中。

And read it next time when you open the application. 并在下次打开应用程序时阅读。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM