Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java8 have filtering method ? #28

Open
coderpwh1024 opened this issue Apr 20, 2019 · 5 comments
Open

java8 have filtering method ? #28

coderpwh1024 opened this issue Apr 20, 2019 · 5 comments

Comments

@coderpwh1024
Copy link

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

0003

@sankalpbhatia
Copy link

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.

@vbhosle
Copy link

vbhosle commented Jun 21, 2019

switch to previous commit to get first edition code.

git reset --hard ae8122f433f90a8bfed7244cdf6f99271f1d1125

@keepangry
Copy link

switch to previous commit to get first edition code.

git reset --hard ae8122f433f90a8bfed7244cdf6f99271f1d1125

thanks

@KitGavinx
Copy link

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

@deviltt
Copy link

deviltt commented Aug 11, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants