将Object转为int类型 Map<String,Object> map = new HashMap<String,Object>(); int number = (int)map.get("键") 将Object转为double类型 Map<String,Object> map = new HashMap<String,Object>(); double number = (double)map.get("键")