| static field initialization using AST [message #780696] |
Thu, 19 January 2012 00:37  |
Syam Mohan Messages: 3 Registered: January 2012 |
Junior Member |
|
|
I need to create a static String variable with a default value (e.g. public static final String COUNTRY="INDIA";) using Eclipse AST. I'm able to create such a varibale using SingleVariableDecleration or FieldDecleration. But I'm not sure how to initialize the same using AST.
This is what I could implement==> public static final String COUNTRY;
This is what I could not implement==> public static final String COUNTRY="INDIA";
Please help me to know how can I do this. Thanks in advance,
Shyam
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01804 seconds