I'm using properties file in my java program.
Currently whenever I'm need of some property from properties file, I'm using propertyFile.getProperty(propertyKeyName);
and taking this into some variable: String propertyName1 = propertyFile.getProperty(propertyKeyName);
Is there any way that with out explicitly defining a variable (propertyName1
) and initializing it using getProperty()
, Can I get the all the Key=Value of a properties file as String variable which has been initialized "String Key=Value" inside my program?
Thanks, Chandra