In Java 8 Date and Time went another remodeling resulting in much better API and concepts better reflecting developer’s needs. Here we’ll go through Java 8 new Date and Time concepts.
Continue reading Java 8 Date Time conceptsJava
Recently I’ve rediscovered Class.cast(object) that can be used to cast objects to a type. In Java 8 streams the method allows to do a nice Java casting trick.
Continue reading Java casting trickIn this post we’ll show a practical example of processing tree-like structure using streams and Java 8 flatMap.
Continue reading Java 8 flatMap practical exampleThere are many ways to create Java Streams and for each of them we’ll show examples. This flexibility is needed especially when combined with flatMap!
Continue reading Create Java StreamsTo calculate MD5 hash in Java we can use pure Java approach or use libraries. In this post we’re going to show how to calculate Message Digest in different ways.
Continue reading MD5 hash in JavaJava 8 Comparators with Method References in action. We mix Java 8 static and default methods with method references to sort objects by multiple fields using chained Comparators!
Continue reading Java 8 Comparators with Method ReferencesRegular Expressions are very handy for text processing. In this article we’ll show Java Regex to remove duplicated words, which is a common task.
Continue reading Java regex remove duplicated wordsA pretty cool exercise in writing Java Regular Expressions is to write Java regex matching IP Address. In this post we’ll show IP regexp and use in IP Address validator.
Continue reading Java regex matching IP AddressJava 8 Functional Interfaces is very important concept, because they are heavily used with Lambda Expressions and Streams to simplify code. Let’s take a deep dive!
Continue reading Java 8 Functional InterfacesIn Java 8 interfaces default and static methods are major changes that allow to extend existing code without breaking anything. It should be the first step into Java 8.
Continue reading Java 8 interfaces default and static methods