object类型list 转为string类型list 以及数组转list

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Android_Mrchen/article/details/88050309
 List<TbXyhDynamictypeFollowPO> followList=  dynamicinfoService.getDynamictypeFollow(params);
            List<String> sfollowList = new ArrayList<String>();

            List<String> resultList = new ArrayList<String>();
            for(TbXyhDynamictypeFollowPO  follow:followList){
                sfollowList.add(follow.getUserId());
            }
  String[] UserIds= msgUserIds.split("\\|");
            List<String> userList = new ArrayList<String>();
            for (int i=0;i<UserIds.length;i++)
            {
                userList.add(UserIds[i]);
            }

猜你喜欢

转载自blog.csdn.net/Android_Mrchen/article/details/88050309
今日推荐