Visitar URL original
java8 have filtering method ? · Issue #28 · java8/Java8InAction · GitHub
Skip to content

java8 have filtering method ? #28

Description

@coderpwh1024

int your chap6 Group.java hava a bug , filtering method not in java8 sdk .

0003

Activity

  1. sankalpbhatia commented on Apr 27, 2019

    @sankalpbhatia

    Looks like they added these codes for the 2nd edition. link
    You can try
    return menu.stream().filter(dish -> dish.getCalories() > 500).collect(groupingBy(Dish::getType));
    which will run fine with a java 8 compiler giving the same result. But my $0.02 would be to use the latest jdk if possible.

  2. vbhosle commented on Jun 21, 2019

    @vbhosle

    switch to previous commit to get first edition code.

    git reset --hard ae8122f433f90a8bfed7244cdf6f99271f1d1125

  3. keepangry commented on Sep 5, 2019

    @keepangry

    switch to previous commit to get first edition code.

    git reset --hard ae8122f433f90a8bfed7244cdf6f99271f1d1125

    thanks

  4. KitGavinx commented on Jan 17, 2020

    @KitGavinx

    int your chap6 Group.java hava a bug , flatMapping method also not in java8 sdk

  5. deviltt commented on Aug 11, 2020

    @deviltt

    int your chap6 Group.java hava a bug , flatMapping method also not in java8 sdk

    Have you solved this problem??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions