I want to populate a HashMap
using the Properties
class.
I want to load the entries in the .propeties
file and then copy it into
public static Map getProperty()
{
Properties prop = new Properties();
Mapmap = new HashMap();
try
{
FileInputStream inputStream = new FileInputStream(Constants.PROPERTIESPATH);
prop.load(inputStream);
}
catch (Exception e) {
e.printStackTrace();
System.out.println("Some issue finding or loading file....!!! " + e.getMessage());
}
for (final Entry