Jyotiprakash Mishrablog.jyotiprakash.org·Nov 22, 2024Do you know Java Streams?Programming is as much about solving problems as it is about communicating our intent clearly. When writing code, one must ask: are we telling the computer how to perform each step, or are we expressing what needs to be achieved? The distinction betw...1 likeno loop
Jyotiprakash Mishrablog.jyotiprakash.org·Nov 19, 2024Introduction to Functional Programming in JavaFunctional Programming and Its Growing Popularity Over the years, software development has continuously evolved, with each paradigm addressing specific challenges. Functional programming, an approach that treats computation as the evaluation of mathe...49 readsmethod reference
Cloud Tunedcloudtuned.hashnode.dev·May 20, 2024Daily Hack #day47 - Java Streams: Summarizing Your DataThe reduce operation accumulates elements within a stream into a single result. This is useful for calculating various statistics or summarizing your data. Here’s an example of finding the total price of all products: int totalPrice = products.strea...Daily HacksJava
Sandip Samagmindmap.hashnode.dev·May 16, 2024Top Java 8 Stream API Interview Questions (Part 2)Given a list of employees, find the employee with the highest salary. package com.streams.maxmin; import java.util.Comparator; import java.util.List; import java.util.stream.Collectors; import com.model.Employee; import com.model.EmployeeDatabase;...1 like·124 readsJava 8Hashnode
Sandip Samagmindmap.hashnode.dev·Mar 10, 2024Java8 Stream API Coding Interview Questions (Part-I)Find out all even and odd numbers from a given list of integers using streams. package com.java.streams; import java.util.Arrays; import java.util.List; public class EvenOddExample { private static void findEvenNumbers(List<Integer> integ...294 readsJava 8java8-stream-api