import java.util.*; import java.util.stream.*; public class JgStream4 { public static void main(String[] args) { List list = Arrays.asList( new Pet("고양이", 2, Pet.Gender.Female), new Pet("강아지", 5, Pet.Gender.Male), new Pet("앵무새", 1, Pet.Gender.Female), new Pet("햄스터", 3, Pet.Gender.Female) ); Map map = list.stream().filter(a -> a.getAge()>1 && a.getGender()==Pet.Gender.Female) .collect(Collectors...