Possible Duplicate:
Global variables in Java
How to create a list of global variables that can be accessible from different classes? Should I create a class of global variables…?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can create one class called ConstantCodes.java
Now declare your variable in this class has follows,
Now you can above variable anywhere from your project using below line,