To make it more like a c header file full of defines, you can declare pubic static final members, as bguild explained, then at then start of any .java file you can
import static mypackage.MyClass.*;
Now you can simply use the public static member names in that file without needing to qualify them with the package/class names.
For example, the java.lang package contains the Math class, and that has the useful member
public static final double PI = 3.14159265358979323846;
so if you
import static java.lang.Math.*;
you can simply refer to it as PI in your code
JamesCherrill
... trying to help
8,514 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30