Interact with Google Sheets from Java
1. Overview Google Sheets provides a convenient way to store and manipulate spreadsheets and collaborate with others on a document. Sometimes, it can be useful to access these documents from an...
View ArticleA Guide to Transactions Across Microservices
1. Introduction In this article, we’ll discuss options to implement a transaction across microservices. We’ll also check out some alternatives to transactions in a distributed microservice scenario....
View ArticleIntroduction to Dubbo
1. Introduction Dubbo is an open-source RPC and microservice framework from Alibaba. Among other things, it helps enhance service governance and makes it possible for a traditional monolith...
View ArticleA Guide to Inner Interfaces in Java
1. Introduction In this short tutorial, we’ll be looking at inner interfaces in Java. They are mainly used for: solving the namespacing issue when the interface has a common name increasing...
View ArticleCreating a Custom Logback Appender
1. Introduction In this article, we’ll explore creating a custom Logback appender. If you are looking for the introduction to logging in Java, please take a look at this article. Logback ships with...
View ArticleIntroduction to Apache Lucene
1. Overview Apache Lucene is a full-text search engine which can be used from various programming languages. In this article, we’ll try to understand the core concepts of the library and create a...
View ArticlePolymorphism in Java
1. Overview All Object-Oriented Programming (OOP) languages are required to exhibit four basic characteristics: abstraction, encapsulation, inheritance, and polymorphism. In this article, we cover two...
View ArticleBatch Processing in JDBC
1. Introduction Java Database Connectivity (JDBC) is a Java API used for interacting with databases. Batch processing groups multiple queries into one unit and passes it in a single network trip to a...
View ArticleEfficient Word Frequency Calculator in Java
1. Overview In this tutorial, we’ll show various ways of implementing a word counter in Java. 2. Counter Implementations Let’s start by simply calculating the word count of words in this array: static...
View ArticleA Guide to EclipseLink with Spring
1. Overview By default, Spring Data uses Hibernate as the default JPA implementation provider. However, Hibernate is certainly not the only JPA implementation available to us. In this article, we’ll...
View ArticleJUnit 5 @Test Annotation
1. Overview In this article, we’ll make a quick review of JUnit’s @Test annotation. This annotation provides a powerful tool for performing unit and regression testing. 2. Maven Configuration To use...
View ArticleCheck if a Java Array Contains a Value
1. Overview In this article, we’ll look at different ways to search an array for a specified value. We’ll also compare how these perform using JMH (the Java Microbenchmark Harness) to determine which...
View ArticleJava Weekly, Issue 208
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Maven on Java 9 – Five Things You Need To Know [blog.codefx.org] The combination of Java 9’s JPMS with Maven...
View ArticlePrimitive Type Streams in Java 8
1. Introduction The Stream API was one of the key features added in Java 8. Briefly, the API allows us to process collections and other sequences of elements – conveniently and more efficiently – by...
View ArticleRecursion In Java
1. Introduction In this article, we’ll focus on a core concept in any programming language – recursion. We’ll explain the characteristics of a recursive function and show how to use recursion for...
View ArticleA Simple File Search with Lucene
1. Overview Apache Lucene is a full-text search engine, which can be used by various programming languages. To get started with Lucene, please refer to our introductory article here. In this quick...
View ArticleHow to Invert an Array in Java
1. Overview In this quick article, we’ll show how we can invert an array in Java. We’ll see a few different ways to do this using pure Java 8-based solutions – some of those mutate an existing array...
View ArticleJava 9 Variable Handles Demystified
1. Introduction Java 9 brought a number of new useful features for developers. One of those is the java.lang.invoke.VarHandle API – representing variable handles – which we’re going to explore in this...
View ArticleIntro to Performance Testing using JMeter
1. Overview In this article, we’re going to use Apache JMeter to configure and run performance tests. 2. Setting up JMeter Let’s download JMeter, unzip it, go to the bin folder and run the executable...
View ArticleGuide to the Cipher Class
1. Overview Simply put, encryption is the process of encoding a message such that only authorized users can understand or access it. The message, referred to as plaintext, is encrypted using an...
View Article