<span style="font-size:18px;">HashMap<String,String> map = new HashMap<String,String>(); ResourceBundle config = ResourceBundle.getBundle("config"); Enumeration enu = config.getKeys(); if(enu != null){ while(enu.hasMoreElements()){ String key = (String)enu.nextElement(); String value = config.getString(key); map.put(key,value); } } return map;</span>