BAEL-668 find min/max from a list/collection (#1134)

* BAEL-668 find min/max from a list/collection

* BAEL-668 using mapToInt instead of Compare

* BAEL-668 using direct assertion with the method call
This commit is contained in:
Mohd Farid
2017-02-15 12:06:04 +05:30
committed by Grzegorz Piwowarek
parent 9135c6073e
commit cc089e5297
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package com.baeldung.java_8_features;
public class Person {
private String name;
private Integer age;
public Person(String name, int age) {
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
}