Using a class to store static data in Java?

前端 未结 7 644
醉梦人生
醉梦人生 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 .

    0 讨论(0)
提交回复
热议问题