[Solved] How to convert from Java 8 to Java 7


Java 7 does not have lambdas, easiest way I can see to port this to Java 7 is to instantiate the List then use a for-each loop to populate it. Something like,

List<LinkBackofficeServiziBean> linkBackofficeServiziBeans = new ArrayList<>();
for (Integer servizio : servizi) {
    linkBackofficeServiziBeans.add(new LinkBackofficeServiziBean(servizio,userId));
}

0

solved How to convert from Java 8 to Java 7