How to decide in which class key should be?


I don’t understand how to define keys such as public static final String DIALOG_DATE = "com…"
Is there any best practice to define the keys and use them ??
where to define the keys means in which class they should be defined ??


There is a Properties class and also an interface called Key. As I recall the book doesn’t go into this very much. Perhaps an improvement for the second edition?
Just FYI, the only people I see post on this board are those who are working through the book. Wish I could help.


Good point. I would like to know this too. For all I know public keys include the packagename. Private keys don’t.


Thanks. Can you please elaborate means giving an example ??