SD: How do I access the values of the constant file If your Constants.java has the following constant,
Access it from other classes like this
SD: Do I use import Constants.java at the top of each of the other two files? Yes. Import it as you would normally do for the other files. If you are using
Java 1.5 look for static imports.
SD: Do I instantiate the file also Not needed. I will make the constructer private to avoid people instantiating it.
SD: Is creating a constants file good programing practice? Don't know. But I think it is not a bad practice either!
[ August 10, 2004: Message edited by: Mani Ram ]