Navigation

    EDU LEVEL DEVTH IDE FORUM
    USERNAME
    내 정보 수정 쿠폰 관리
  • 로그아웃
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    1. Home
    2. 도영현
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    도영현

    @도영현

    3
    Level
    0
    Reputation
    3
    Posts
    34
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    도영현 Follow

    Posts made by 도영현

    • RE: Java | stream flatMapping, filtering 관련 오류 질문드립니다.

      @po개발자wer 글 수정이 안되서 공유 링크를 바꾸었습니다 ㅎㅎ 감사합니다

      posted in 구름IDE 관련
      도영현
    • RE: Java | stream flatMapping, filtering 관련 오류 질문드립니다.

      https://goor.me/cmizJ
      링크입니다~!

      posted in 구름IDE 관련
      도영현
    • Java | stream flatMapping, filtering 관련 오류 질문드립니다.

      안녕하세요 goorm ide에서 java로 간단한 실습을 진행하고 있는데 에러 원인을 찾기 힘들어서 질문드립니다.
      전체 코드가 너무 길어서 일부만 첨부하겠습니다.

       Map<Dish.Type, List<Dish>> dishesByCook =
                      menu.stream().collect(groupingBy(Dish::getType, filtering(dish -> dish.getCalories() > 500, toList())));
              System.out.println(dishesByCook);
      
       Map<Dish.Type, Set<String>> dishNamesByType =
                      menu.stream()
                              .collect(groupingBy(Dish::getType, flatMapping(dish -> dishTags.get(dish.getName()).stream(),                                      toSet())));
              System.out.println(dishNamesByType);
      

      이렇게 groupingBy() 안에 filtering이나 flatMapping을 넣으니까 함수 밑에 빨간줄이 그이면서
      "The method ~~ is undefined for the type Main" 이라는 에러 메시지가 뜹니다.(Main은 클래스 이름입니다)
      IntelliJ에서 실행시 아무런 문제가 발생하지 않았기 때문에 왜 이런 에러가 발생하는지 모르겠습니다.

      해결법 아시는 분은 답글 부탁드립니다.
      필요하다면 전체 코드 첨부하도록 하겠습니다.

      posted in 구름IDE 관련
      도영현
    • 1 / 1
    goorm
    상호 : (주)구름    대표 : 류성태    개인정보보호책임자 : 김현화
    경기 성남시 분당구 판교로 242 PDC A동 902호
    사업자등록번호 : 124-87-39200
    통신판매업신고번호 : 제2019-성남분당B-0224호
    TEL : 031-600-8586    Email : contact@goorm.io
    • 구름EDU
    • 구름LEVEL
    • 구름DEVTH
    • 구름IDE
    • 구름FORUM
    ⓒ goorm Inc. All Rights Reserved.
    채용 이용약관 개인정보처리방침 도움말 powered by nodeBB