JAVA怎么把一个对象集合遍历得到当中的Id集

如题所述

for(Object o : list){
    System.out.print(o.getId());
}

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜