视频上是对的,我写了就错了
public Student(Map
map){ this.id = (int)map.get("id"); this.stuName = (String)map.get(stuName); this.age = (int)map.get("age"); this.gender = (int)map.get("gender"); this.address = (String)map.get(address); } Cannot cast from Object to int不知道怎么调试,object>