Skip to content

Conversation

@andr2ei
Copy link

@andr2ei andr2ei commented Jul 4, 2017

Andrei Andronov

andr2ei added 3 commits July 3, 2017 22:05
# Conflicts:
#	src/test/java/lambda/part1/exercise/Lambdas01Exercise.java
#	src/test/java/lambda/part1/exercise/Lambdas02Exercise.java
};

// 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