Jun 1, 2025 · 3 min read · In the previous article we’ve gained familiarity with various stream methods Java Stream API for Beginners. In this article, we’ll make use of these methods to solve real life problems and frequently asked interview questions. Find duplicate elements...
Join discussion
May 27, 2025 · 3 min read · Java 24 llegó en marzo de 2025 como una versión de corto plazo (no LTS), pero viene cargada de novedades útiles para el día a día de cualquier desarrollador Java. Desde mejoras de lenguaje hasta librerías optimizadas y herramientas para programación ...
Join discussion
Apr 11, 2025 · 4 min read · Introduction to Java Stream API The Stream API, introduced in Java 8, revolutionized how we process collections by providing a declarative, functional, and parallel-processing approach. Instead of writing verbose loops, developers can chain operation...
Join discussion
Mar 7, 2025 · 30 min read · 1️⃣ Find Second Highest Number in a List List<Integer> numbers = Arrays.asList(5, 1, 9, 2, 9, 7); Optional<Integer> secondHighest = numbers.stream() .distinct() .sorted(Comparator.reverseOrder()) .skip(1) .findFirst(); System.out.pri...
Join discussionFeb 1, 2025 · 1 min read · 목표 : Stream API의 map과 flatMap의 차이점과 각각의 활용 사례를 예시 코드와 함께 확인해보자. 1️⃣StreamApi의 Map ? 먼저 코드를 통해 확인하자. //Map public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStrea...
Join discussion
Nov 22, 2024 · 32 min read · 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...
Join discussionJul 15, 2024 · 2 min read · It can be classify into two operation. Intermediate operation Transform a stream into another stream. Examples: filter, map, distinct, sorted, limit, etc. Terminal operation It's provide the result and terminate the stream. Example: forEach, co...
Join discussion
Jun 7, 2024 · 8 min read · We have already talked about Streams and Lambda expressions in JAVA on other posts, but on this one, I'd like to talk about it again on more specific topics related to some more common features and functions used by our community. In this article, we...
Join discussion