Using a class to store static data in Java?

前端 未结 7 722
醉梦人生
醉梦人生 2020-12-28 23:50

Is it a bad idea creating a separate class and use it as a storage which consists only of static data variables?

I am currently developing an app for android, but th

7条回答
  •  感动是毒
    2020-12-29 00:40

    You can use SharedPreference to store flags and variables .

    Look at this Preference Demo .

提交回复
热议问题