Say I have a Map (static data) which is being used throughout the application and want to repopulate that Map with new current data once per day. What would be the best way to clear out the old data, and repopulate that same Map name without creating multiple references and objects in memory?
Something like:
Would this be an issue?
Something like:
Code:
mapName.clear();
mapName= createObjectFromXMLFile(sdXML2.toString());
Would this be an issue?