What is the easiest way to convert a 2D array of strings to a HashMap?
For example, take this:
final String[][] sheetMap = {
{"FileHeader", "FileHeader"},
{"AccountRecord", "AccountRecord"},
{"DriverCardRecord", "DriverCardRecord"},
{"AssetCardRecord", "AssetCardRecord"},
{"SiteCardRecord", "SiteCardRecord"}
};
Most likely it will be loaded from a file and there will be much more.
Casey source
share