[java ee programming] Re: using as define in Java

2009-10-15 Thread James Boswell
Hi, Are you simply looking to define a constant? In Java, this can be achieved by: Class A { public final static String SERVER = ""; } You then reference this value in other classes using A.SERVER Hope this helps. James -Original Message- From: java-ee-j2ee-programming-with-

[java ee programming] Re: using as define in Java

2009-10-15 Thread baka...@gmail.com
Hi, I am not sure but as far as I remember define option i C behaves like a text replace function so at the compilation time it replaces all defined items with it's value. I think in java there is not such a feature. But why don't you just play with the variable visibility. What if you made a pub