Is it possible to populate hashmap like this?
final HashMap<String, String> map = new HashMap<>();
map.put("path", path);
map.put("tableName", "table");
map.put("fileType", fileType);
final HashMap<String, String> option = new HashMap<>();
map.put("option", option.put("header", "true"));
Or is there another right (or better) way than this? because when I try to print "map" the key "option" has no value in it.
Thanks in advance