2018/04/18 썸네일형 리스트형 Java 8 Collection 돌려보기 우선 City라는 Dto를 하나 만들어 둔다.public class City { private Long id; private String name; private String country; public City(Long id, String name, String country) { this.id = id; this.name = name; this.country = country; } ...getter/setter...} 해당 City를 List로 만든 후, 여러가지를 해볼 수 있다. 가령 cities의 특정 property를 키로 두고 List를 가지는 맵을 만든다던지 하는.. 예제를 직접 만들어 보자. public class CollectionExample { private static List ge.. 더보기 이전 1 다음