Blog: how to do in java


230 blogs updated: 27 min. ago
Sort stream on multiple fields
Java 8 example to sort stream of objects by multiple fields using comparators and Comparator.thenComparing( ) method. This method returns a ...
0
24-03-2019 04:24:53 how to do in java Advanced
How to sort stream in Java 8
Learn to sort stream of numbers and strings in ascending (natural order) and descending orders (reverse order) in Java 8. The post How to so...
3
23-03-2019 21:29:44 how to do in java Advanced
Java 8 – Generic Functional Interfaces
Learn to create generic functional interfaces with and without type restrictions in Java 8 and later. Note that functional interfaces permit...
11
21-03-2019 19:40:04 how to do in java Advanced
Java 8 – Convert stream to array
Learn to convert stream to array using Stream.toArray() API. This post contains multiple examples for collecting stream elements to array un...
10
19-03-2019 00:50:28 how to do in java Advanced
Java 8 – Convert stream to list
Learn to convert stream to list using Collectors.toList() and Collectors.toCollection() APIs. This post contains multiple examples for colle...
3
18-03-2019 17:42:47 how to do in java Advanced
Java 8 – Convert stream to Map
Learn to collect stream elements into Map using Collectors.toMap() and Collectors.groupingBy() methods using Java 8 Stream APIs. Convert str...
10
18-03-2019 11:03:58 how to do in java Advanced
Java Stream reuse – traverse stream multiple times?
Is it possible to reuse streams in Java? Learn the alternative of Java stream reuse. 1. Can we reuse stream? No. Java streams, once consumed...
6
16-03-2019 06:16:00 how to do in java Advanced
Java Stream findFirst() vs findAny() API With Example
Java Stream interface has two methods i.e. findFirst() and findAny(). Both method looks very much similar but they may behave differently in...
3
15-03-2019 20:42:46 how to do in java Advanced
Java Stream anyMatch() API
Java Stream anyMatch (Predicate predicate) is terminal-short-circuiting operation which is used to check if the stream contains any matching...
3
15-03-2019 05:26:12 how to do in java Advanced
Java Stream allMatch() API
Java Stream allMatch (Predicate predicate) is short-circuiting terminal operation which is used to check if all the elements of the stream m...
6
14-03-2019 22:25:28 how to do in java Advanced


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.