Strings functions in Golang
List of Golang string functions tested example and short description.
The strings
package provides many useful string-related functions.
Java 8 Streams filter examples
Java 8 Streams filter examples. Simple examples comparing the classic approach pre-Java 8 and using the new Java 8 functionalities.
How to sort TreeMap in descending order in Java
How to sort TreeMap in descending order in Java. A simple example using a string as keys.
Enum examples in Java
Enum examples in Java. Simple enum usage. How to convert String to Enum object. Enum object with fields and methods.
How to sort objects with Comparable and Comparator in Java
How to sort objects with Comparable and Comparator in Java. Primitive array and list sorting. Java Object sorting with Comparable and Comparator.
How to compare dates in Java
How to compare dates in Java using Date (compareTo, before, after, equals), Calendar(before, after, equals) and LocalDate(isBefore, isAfter, equals) classes.