Filtering Observables in RxJava
1. Introduction Following the Introduction to RxJava, we’re going to look at the filtering operators. In particular, we’re going to focus on filtering, skipping, time-filtering, and some more advanced...
View ArticleObjects in Kotlin
1. Introduction Kotlin borrowed many ideas from other languages; one of such constructs is the object. In this quick article, we’ll see what objects are and how can be used. 2. Objects in Kotlin In...
View ArticleHamcrest Custom Matchers
1. Introduction As well as built-in matchers, Hamcrest also provides support for creating custom matchers. In this tutorial, we’ll take a closer look at how to create and use them. To get a sneak peek...
View ArticleClass Loaders in Java
1. Introduction to Class Loaders Class loaders are responsible for loading Java classes during runtime dynamically to the JVM (Java Virtual Machine). Also, they are part of the JRE (Java Runtime...
View ArticleSpring Security with Thymeleaf
1. Overview In this quick tutorial, we’ll focus on Spring Security with Thymeleaf. We’re going to create a Spring Boot application where we’ll demonstrate the usage of security dialect. Our choice for...
View ArticleIntroduction to JavaFx
1. Introduction JavaFX is a library for building rich client applications with Java. It provides an API for designing GUI applications that run on almost every device with Java support. In this...
View ArticleShow Hibernate/JPA SQL Statements from Spring Boot
1. Overview Spring JDBC and JPA provide abstractions over native JDBC APIs allowing developers to do away with native SQL queries. However, often we need to see those auto-generated SQL queries and...
View ArticleInheritance and Composition (Is-a vs Has-a relationship) in Java
1. Overview Inheritance and composition — along with abstraction, encapsulation, and polymorphism — are cornerstones of object-oriented programming (OOP). In this tutorial, we’ll cover the basics of...
View ArticleSpring Boot Gradle Plugin
1. Overview The Spring Boot Gradle plugin helps us manage Spring Boot dependencies, as well as package and run our application when using Gradle as a build tool. In this tutorial, we’ll discuss how we...
View ArticleReading from a File in Kotlin
1. Overview In this quick tutorial, we’ll learn about the various ways of reading a file in Kotlin. We’ll cover both use cases of reading the entire file as a String, as well as reading it into a list...
View ArticleIntroduction to Spring Boot CLI
1. Introduction Spring Boot CLI is a command-line abstraction that allows us to easily run Spring micro-services expressed as Groovy scripts. It also provides simplified and enhanced dependency...
View ArticleA Guide to the JSTL Library
1. Overview JavaServer Pages Tag Library (JSTL) is a set of tags that can be used for implementing some common operations such as looping, conditional formatting, and others. In this tutorial, we’ll...
View ArticleJava Weekly, Issue 224
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleFinding Min/Max in an Array
1. Introduction In this short tutorial, we’re going to see how to find the maximum and the minimum values in an array, using Java 8’s Stream API. We’ll start by finding the minimum in an array of...
View ArticleQuick Guide to java.lang.System
1. Overview In this tutorial, we’ll take a quick look at the java.lang.System class and its features and core functionality. 2. IO System is a part of java.lang, and one of its main features is to...
View ArticleAssert an Exception is Thrown in JUnit 4 and 5
1. Introduction In this quick tutorial, we’ll be looking at how to test if an exception was thrown, using JUnit library. Of course, we’ll make sure to cover both the JUnit 4 and JUnit 5 versions. 2....
View Article@Lookup Annotation in Spring
1. Introduction In this quick tutorial, we’ll take a look at Spring’s method-level dependency injection support, via the @Lookup annotation. 2. Why @Lookup? A method annotated with @Lookup tells...
View ArticleSpring Boot: Customize Whitelabel Error Page
1. Overview In this article, we’re going to look at how to disable and customize the default error page for a Spring Boot application as proper error handling depicts professionalism and quality work....
View ArticleInternationalization and Localization in Java 8
1. Overview Internationalization is a process of preparing an application to support various linguistic, regional, cultural or political-specific data. It is an essential aspect of any modern...
View ArticleA Quick Guide to the JVM Languages
1. Introduction Besides Java, other languages can run on the Java Virtual Machine like Scala, Kotlin, Groovy, Clojure. In the following sections, we’ll take a high-level look at the most popular JVM...
View Article