java我强制类型转化为什么还运行错误

2025-03-13 03:19:31
推荐回答(2个)
回答1:

a是int类型,不是double类型啊

回答2:

加个判断if(valueinstanceofIconListItem){item=(IconListItem)value;}你试试