我想从另一个类访问Hashmap以获取规则,我该怎么做?
11月级
public static main()
...
public static HashMap<Object, Object> parseJson(JSONObject jsonObject) throws ParseException {
Set<Object> set = jsonObject.keySet();
Iterator<Object> iterator = set.iterator();
while (iterator.hasNext()) {
Object obj = iterator.next();
if (jsonObject.get(obj) instanceof JSONArray)
{
getArray(jsonObject.get(obj));
}
else {
}
}