4
Java akışına sahip Çalışan Listesinden belirli bir katılım tarihinden önce ve sonra Çalışanları edinin
Farklı katılma tarihleri Listolan Employees var . Akışları kullanarak Listeden belirli bir katılım tarihinden önce ve sonra Çalışanları Almak istiyorum. aşağıdaki kodu denedim, List<Employee> employeeListAfter = employeeList.stream() .filter(e -> e.joiningDate.isAfter(specificDate)) .collect(Collectors.toList()); List<Employee> employeeListBefore = employeeList.stream() .filter(e -> e.joiningDate.isBefore(specificDate)) .collect(Collectors.toList()); class Employee{ int id; String name; LocalDate joiningDate; } Bunu tek …