Posts

Showing posts with the label lambda expressions

Java 8 - Lambda Expressions

Image
We'll do something interesting today.Let's make a simple student management application which you can insert students,get the information of the students and filter them according to the given conditions.First let's create the basic Person class which is going to help us in entering,getting and filtering student details. public class Person {    public enum Sex {         MALE, FEMALE     }     String name;     Sex gender;     String emailAddress;     int age;     Person(){}     Person(String name, String emailAddress, int age, Sex gender) {         this.name = name;         this.emailAddress = emailAddress;         this.age = age;         this.gender = gender;     }     public String getName() {         return name;     }     p...