Deploy a Spring Boot Application to Google App Engine
1. Overview In this tutorial, we’ll show how to deploy an application from our Bootstrap a Simple Application using Spring Boot tutorial to App Engine on Google Cloud Platform. As part of this we’ll:...
View ArticleCalculate Percentage in Java
1. Introduction In this quick tutorial, we’re going to implement a CLI program to calculate percentage in Java. But first, let’s define how to calculate percentage mathematically. 2. Mathematical...
View ArticleA Quick Guide to Apache Geode
1. Overview Apache Geode is a distributed in-memory data grid supporting caching and data computation. In this tutorial, we’ll cover Geode’s key concepts and run through some code samples using its...
View ArticleCDI Portable Extension and Flyway
1. Overview In this tutorial, we’ll go over an interesting feature of CDI (Context and Dependency Injection) called CDI portable extension. First, we’ll start by understanding how it works, and then...
View ArticleQuicksort Algorithm Implementation in Java
1. Overview In this tutorial, we’ll explore the QuickSort algorithm in detail, focusing on its Java implementation. We’ll also discuss its advantages and disadvantages and then analyze its time...
View ArticleCombining RxJava Completables
1. Overview In this tutorial, we’ll play with RxJava’s Completable type, which represents a computation result without an actual value. 2. RxJava Dependency Let’s include the RxJava 2 dependency into...
View ArticleJava Weekly, Issue 249
Here we go… 1. Spring and Java >> Explore the New Java 10 “var” Type: An Introduction and Hands-on Tutorial [infoq.com] A nice write-up about type inference for local variables, a shiny new...
View ArticleKotlin return, break, continue Keywords
1. Overview In this tutorial, we’ll discuss the usage of structural jump expressions in Kotlin. Simply put, Kotlin has three structural jump expressions: return, break, continue. In the next sections,...
View ArticleETL with Spring Cloud Data Flow
1. Overview Spring Cloud Data Flow is a cloud-native toolkit for building real-time data pipelines and batch processes. Spring Cloud Data Flow is ready to be used for a range of data processing use...
View ArticleMerging Two Maps with Java 8
1. Introduction In this quick tutorial, we’ll demonstrate how to merge two maps using the Java 8 capabilities. To be more specific, we’ll examine different merging scenarios including maps having...
View ArticleCalculating the nth Root in Java
1. Overview Trying to find the n-th root in Java using pow() is inaccurate in some cases. The reason for that is that Math.pow(double a, double b) uses double numbers, losing precision on the way. 2....
View ArticleSpring Data MongoDB Transactions
1. Overview Starting from the 4.0 release, MongoDB supports multi-document ACID transactions. And, Spring Data Lovelace now provides support for these native MongoDB transactions. In this tutorial,...
View ArticleUsing Math.sin with Degrees
1. Introduction In this short tutorial, we’ll look at how to calculate sine values using Java’s Math.sin() function and how to convert angle values between degrees and radians. 2. Radians vs. Degrees...
View ArticleHow to Check If a Key Exists in a Map
1. Overview In this brief tutorial, we’ll look at ways to check if a key exists in a Map. Specifically, we’ll focus on containsKey and get. 2. containsKey If we take a look at the JavaDoc for...
View ArticleMaven Polyglot
1. Overview Maven Polyglot is a set of Maven core extensions that allows the POM model to be written in any language. This includes many scripts and markup languages other than XML. The primary goal...
View ArticleLogging to Graylog with Spring Boot
1. Introduction Graylog is a log aggregation service. Simply put, it’s capable of collecting millions of log messages from multiple sources and displaying them in a single interface. And, it also...
View ArticleCache Eviction in Spring Boot
1. Overview In this short tutorial, we’re going to learn how we can perform cache eviction using Spring. We’ll be creating a small example to demonstrate this. Before proceeding, check out our article...
View ArticleGradle: build.gradle vs. settings.gradle vs. gradle.properties
1. Overview In this article, we’ll look at the different configuration files of a Gradle Java project. Also, we’ll see the details of an actual build. You can check this article for a general...
View ArticleGuide to Java OutputStream
1. Overview In this tutorial, we’ll explore details about the Java class OutputStream. OutputStream is an abstract class. This serves as the superclass for all classes representing an output stream of...
View ArticleInsertion Sort in Java
1. Overview In this tutorial, we’re going to discuss the Insertion Sort algorithm and have a look at its Java implementation. Insertion Sort is an efficient algorithm for ordering a small number of...
View Article