Java8快速ObjList转StrList

List<String> stringList = objectList.stream()

                .map(Object::toString)
                .collect(Collectors.toList());

扫描二维码,在手机上阅读!

发表评论

电子邮件地址不会被公开。 必填项已用*标注