-
Java 8 Filter a Map examples
Few Java examples to show you how to filter a Map with Java 8 stream API.
Date: 2019-08-17 View: 2688
-
How to read and write Java object to a file
Java object Serialization is an API provided by Java Library stack as a means to serialize Java objects. Serialization is a process to convert objects into a writable byte stream. Once converted into a byte-stream, these objects can be written to a file. The reverse process of this is called de-serialization.
Date: 2019-08-17 View: 1590
-
Java Swing JFileChooser example
JFileChooser is a quick and easy way to prompt the user to choose a file or a file saving location. Below are some simple examples of how to use this class.
Date: 2019-08-17 View: 1542
-
Java Compare Enum value
In Java, you can use == operator to compare Enum value.
Date: 2019-08-17 View: 2045
-
Java builder design pattern example
A complete Java builder pattern example.
Date: 2019-08-17 View: 1436
-
Java 8 Convert List to Map
Few Java 8 examples to show you how to convert a List of objects into a Map, and how to handle the duplicated keys.
Date: 2019-08-17 View: 2286
-
Java How to override equals and hashCode
Some Java examples to show you how to override equals and hashCode.
Date: 2019-08-17 View: 1270
-
Windows 10 Edit Hosts file
In this tutorial, we will show you how to add a mapping of IP addresses to host names in the Windows Hosts file.
Date: 2019-08-17 View: 1938
-
Java 8 – Stream Collectors groupingBy examples
In this article, we will show you how to use Java 8 Stream Collectors to group by, count, sum and sort a List.
Date: 2019-08-17 View: 2622
-
Windows 10 Can not create new folder
Suddenly, my Windows 10 is unable to create new folder:
Date: 2019-08-17 View: 1619
-
Java Stream has already been operated upon or closed
In Java 8, Stream cannot be reused, once it is consumed or used, the stream will be closed.
Date: 2019-08-17 View: 2907
-
Java How to convert Array to Stream
In Java 8, you can either use Arrays.stream or Stream.of to convert an Array into a Stream.
Date: 2019-08-17 View: 2685
-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
Date: 2019-08-17 View: 2033
-
Java find class fields with specified data type
Some Java reflection API examples.
Date: 2019-08-17 View: 1475
-
MongoDB group, count and sort example
Some MongoDB examples to show you how to perform group by, count and sort query.
Date: 2019-08-17 View: 1470