Using Pairs in Java
1. Overview In this quick article, we discuss the highly useful programming concept known as a Pair. Pairs provide a convenient way of handling simple key to value association and are particularly...
View ArticleJava Weekly, Issue 194
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Five Command Line Options To Hack The Java 9 Module System [blog.codefx.org] Java 9 will be out in a week –...
View ArticleIntroduction to EGit
1. Overview In this article, we’re going to explore EGit – an evolution of the JGit library for Eclipse. 2. EGit Setup During the article, we’ll use the following tools: Eclipse Neon.3 version 4.6.3...
View ArticleGuide to Mustache with Spring Boot
1. Overview In this article, we’ll focus on using Mustache templates for producing HTML content in Spring Boot applications. It’s a logic-less template engine for creating dynamic content, which is...
View ArticleBinary Search Algorithm in Java
1. Overview In this article, we’ll cover advantages of a binary search over a simple linear search and walk through its implementation in Java. 2. Need for Efficient Search Let’s say we’re in the...
View Article“Stream has already been operated upon or closed” Exception in Java
1. Overview In this brief article, we’re going to discuss a common Exception that we may encounter when working with the Stream class in Java 8: IllegalStateException: stream has already been operated...
View ArticleVavr Tutorial
Vavr is a functional library for Java 8+ that provides immutable data types and functional control structures. Functional programming is not only a new set of tools to get accustomed with but also a...
View ArticleGuide to the Diamond Operator in Java
1. Overview In this article, we’ll look at the diamond operator in Java and how generics and the Collections API influenced its evolution. 2. Raw Types Prior to Java 1.5, the Collections API supported...
View ArticleIntroduction to GeoTools
1. Overview In this article, we’ll go through the basics of the GeoTools open source Java library – for working with geospatial data. This library provides compliant methods for implementing...
View ArticleIntroduction to EthereumJ
1. Introduction In this article, we take a look at the EthereumJ library that allows us to interact with the Ethereum blockchain, using Java. First, let’s just briefly dive into what this technology...
View ArticleObservable Utility Operators in RxJava
1. Overview In this article, we’ll discover some utility operators for working with Observables in RxJava and how to implement custom ones. An operator is a function that takes and alters the behavior...
View ArticleJava Weekly, Issue 195
Today – Java 9 goes live (I’ve been waiting for some time to write this sentence). Let’s jump right in… 1. Spring and Java >> The Top 10 Jigsaw and Java 9 Misconceptions Debunked...
View ArticleGuide to LinkRest
1. Overview LinkRest is an open-source framework for building data-driven REST web services. It’s built on top of JAX-RS and Apache Cayenne ORM, and uses an HTTP/JSON-based message protocol....
View ArticleIntroduction to Jukito
1. Overview Jukito is the combined power of JUnit, Guice, and Mockito – used for simplifying testing of multiple implementations of the same interface. In this article we’re going to see how authors...
View ArticleProxy, Decorator, Adapter and Bridge Patterns
1. Introduction In this article, we’re going to focus on Structural Design Patterns in Java – and discuss what these are and some fundamental differences between some of them. 2. Structural Design...
View ArticleCollection Factory Methods for Vavr
1. Overview Vavr is a powerful library for Java 8+, built on top of Java lambda expressions. Inspired by the Scala language, Vavr adds functional programming constructs to the Java language, such as...
View ArticleGranted Authority Versus Role in Spring Security
1. Overview In this quick article, we’ll explain the subtle but significant difference between a Role and a GrantedAuthority in Spring Security. For more detailed information on roles and authorities,...
View ArticleIntroduction to rxjava-jdbc
1. Overview Simply put, rxjava-jdbc is an API for interacting with relational databases which allows fluent-style method calls. In this quick tutorial, we’re going to have a look at the library and...
View ArticleRxJava Tutorial
RxJava is a Reactive Extensions implementation for Java environment. The library utilizes a combination of functional and reactive techniques that can represent an elegant approach to event-driven...
View ArticleKotlin Tutorial
Kotlin is a new statically-typed language in the JVM world with a developer-friendly syntax and strong Java interoperability. It’s now also a first-class language on the Android platform. >>...
View Article