I have a java program with hundreds of configuration constants:
public static final String C1=\"C1\";
public static final String C2=\"C2\";
Sin
The answer is Static import
, you can solve by using it:
import static mynamespace.MyClassConstants.*;
See also:
You should static import. More details are here http://javapapers.com/core-java/what-is-a-static-import-in-java/
You have it like : import static mynamespace.MyClassConstants.*;
try
import static mynamespace.MyClassConstants.*;
then
myMethod( C1, C2 ); should work