Learn to use Java stream sorted() method to sort a stream of elements in their natural order and also according to the any Comparator and lambda expression.
Category: Articles
Java chained predicates – logical AND and logical OR operations
Java examples of chained predicates and to perform ‘logical AND‘ and ‘logical OR‘ operations and collect the elements into a list.
Java Stream min() – Select Smallest Element in Stream – HowToDoInJava
Learn to use Java Stream min() method to select the smallest element in the stream according to the comparator provided in its argument.
Java Stream map() example – Convert Stream to Stream – HowToDoInJava
Learn to use Java Stream map() method which produces one output value of a different type ‘X’ for each input value of type ‘Y’. Java 8 stream.map() example.
Java Stream max() – Select Largest Element in Stream – HowToDoInJava
Learn to use Java Stream max() method to select the largest element in the stream according to the comparator provided in its argument.
Since Java 9 HashMap.computeIfAbsent() throws ConcurrentModificationException on attempt to memoize recursive function results
9 1 Today I learned from some JS course what memoization is and tried to implement it in Java. I had a simple recursive function t….
Java Stream filter() example – Filter out non-matching elements
Learn to use Java Stream filter(Predicate condition) method to traverse all the elements and filter out all elements which do not match a given predicate.
5 Courses to Learn RESTful Web Services With Java and Spring in 2019 – DZone Java
In this article, we share some of the best courses to learn REST API development in the Java world using Spring.
Spring Hello World Example in Java using Dependency Injection and XML Configuration
Hello All, In this Spring framework tutorial, you will learn how to write the hello world example in the Spring framework. This should be…
Java Stream forEachOrdered() – forEach() vs forEachOrdered() example
Learn to use Stream forEachOrdered(Consumer action) method to traverse all the elements in the encounter order of the stream if the stream has such order.
Java Stream.forEach() – Traverse elements of stream – HowToDoInJava
Learn to use Stream forEach(Consumer action) method to traverse all the elements of stream and performs an action for each element of this stream.
Computer Science: Algorithms, Theory, and Machines | Coursera
Computer Science: Algorithms, Theory, and Machines from Princeton University. This course introduces the broader discipline of computer science to people having basic familiarity with Java programming. It covers the second half of our book …
How and Why to Analyze, Generate and Transform Java Code Using Spoon – Federico Tomassetti – Software Architect
Spoon is a tool to analyze, generate, and transform Java code. We will see what can be achieved by using techniques for processing code programmatically.
How is the Eclipse Foundation Specification Process (EFSP) different from the Java Community Process (JCP)? – JAXenter
Tanja Obradovic explains the five crucial differences between the Eclipse Foundation Specification Process and the Java Community Process.