-
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: 1517
-
Java Compare Enum value
In Java, you can use == operator to compare Enum value.
Date: 2019-08-17 View: 2025
-
Java builder design pattern example
A complete Java builder pattern example.
Date: 2019-08-17 View: 1417
-
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: 2261
-
Java How to override equals and hashCode
Some Java examples to show you how to override equals and hashCode.
Date: 2019-08-17 View: 1244
-
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: 1918
-
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: 2595
-
Windows 10 Can not create new folder
Suddenly, my Windows 10 is unable to create new folder:
Date: 2019-08-17 View: 1593
-
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: 2878
-
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: 2659
-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
Date: 2019-08-17 View: 2005
-
Java find class fields with specified data type
Some Java reflection API examples.
Date: 2019-08-17 View: 1453
-
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: 1444
-
Logback Set log file name programmatically
In Logback, it is easy to set a log file name programmatically :
Date: 2019-08-17 View: 2367
-
Gradle and JUnit example
In Gradle, you can declare the JUnit dependency like this:
Date: 2019-08-17 View: 1399