How do I store and switch over preferences?

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-04-24T18:11:59Z Indexed on 2010/04/24 18:13 UTC
Read the original article Hit count: 200

Filed under:
|

I want to store some user preferences Would Enum be a good datastructure to store them? If so, how do I do it? This is the final usage of the datastructure.

main(){
  int my_val = PREFERENCES.BLACK;
  switch(PREFERENCES){

   case BLACK:
     ...
}

© Stack Overflow or respective owner

Related posts about java

Related posts about enum