我知道这是一个菜鸟问题,但我在网上找不到任何东西。我有这个 HashMap:
HashMap<String, String> map = new HashMap<String, String>();
Element e = (Element) children.item(i);
map.put("title", ParseXMLmethods.getValue(e, "title"));
map.put("pubDate", ParseXMLmethods.getValue(e, "pubDate"));
map.put("link", ParseXMLmethods.getValue(e, "link"));
map.put("description",ParseXMLmethods.getValue(e, "description"));
localist.add(map);
我在 localist 上收到错误消息:“localist 无法解决”。我知道我必须声明 localist 但我不知道要使用哪种变量类型。任何帮助将非常感激。