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

Part1 #167

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Part1 #167

wants to merge 4 commits into from

Conversation

andr2ei
Copy link

@andr2ei andr2ei commented Jul 4, 2017

Andrei Andronov

# Conflicts:
#	src/test/java/lambda/part1/exercise/Lambdas01Exercise.java
#	src/test/java/lambda/part1/exercise/Lambdas02Exercise.java
@@ -18,7 +20,7 @@ public void sortPersonsByAge() {
new Person("name 2", "lastName 1", 30)
};

// TODO use Arrays.sort
Arrays.sort(persons, (p1, p2) -> Integer.compare(p1.getAge(), p2.getAge()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use Comparator.comparingInt

was used instead expression lambda
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

Successfully merging this pull request may close these issues.

2 participants