object数组里面还有一个object数组怎么取

String hql = "select l.areaid,count(l) from Link l group by l.areaid";
Session s = SessionFactoryUtils.getNewSession(getSessionFactory(), getEntityInterceptor());
list = s.createQuery(hql).list();
Object[] object = list.toArray();

object[] obj = {new object[]{1,2,3}}; obj数组的元素里有个object[]的数组,内容为1,2,3
object[] obj2 = (object[])obj[0];取出obj索引为0的数组,强转为object[]
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答