com.ekingstar.common.meeting.MeetingCustom custom = list.get(i)
list为List<com.ekingstar.common.meeting.MeetingCustom>类型的对象,但是提示java.lang.ClassCastException: com.ekingstar.common.meeting.MeetingCustom cannot be cast to com.ekingstar.common.meeting.MeetingCustom.新人没有c币,还请大神解答一下
首先,你把类的包名去掉,只写类名称,然后导入一个类就可以了,其次,检查下你的list存的是否确定是同一个类型的对象呢?Java工具是不会出错的,仔细检查下代码 。
强类型转换一下试试看看能不能成