-
Windows 10 Can not create new folder
Suddenly, my Windows 10 is unable to create new folder:
Date: 2019-08-17 View: 2230
-
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: 3935
-
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: 3389
-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
Date: 2019-08-17 View: 2685
-
Java find class fields with specified data type
Some Java reflection API examples.
Date: 2019-08-17 View: 2062
-
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: 2153
-
Logback Set log file name programmatically
In Logback, it is easy to set a log file name programmatically :
Date: 2019-08-17 View: 3086
-
Gradle and JUnit example
In Gradle, you can declare the JUnit dependency like this:
Date: 2019-08-17 View: 1985
-
Java Swing JOptionPane showInputDialog example
This is a review of the showInputDialog() method of JOptionPane Class. With this method we can prompt the user for input while customizing our dialog window. The showConfirmDialog returns either String or Object and can be called using the following combinations of parameters:
Date: 2019-08-17 View: 2472
-
Maven and JUnit example
In Maven, you can declare the JUnit dependency like this:
Date: 2019-08-17 View: 1839
-
Hamcrest How to assertThat check null value?
Try to check null value with the Hamcrest assertThat assertion, but no idea how?
Date: 2019-08-17 View: 1991
-
JUnit How to test a List
First, exclude the JUnit bundled copy of hamcrest-core, and include the useful hamcrest-library, it contains many useful methods to test the List data type.
Date: 2019-08-17 View: 1924
-
JUnit How to test a Map
Forget about JUnit assertEquals(), to test a Map, uses the more expressive IsMapContaining class from hamcrest-library.jar
Date: 2019-08-17 View: 2118
-
Intellij IDEA How to build project automatically
By default, Intellij IDEA doesn’t compile classes automatically. But, you can enable the auto compile feature by following steps :
Date: 2019-08-17 View: 2181
-
Intellij + Infinitest Continuous Testing
The Infinitest is a continuous testing plugin, it helps to run the test automatically.
Date: 2019-08-17 View: 2085


