Radix Sort in Java
1. Introduction In this tutorial, we'll learn about Radix Sort, analyze its performance, and take a look at its implementation. Here we focus on using Radix Sort to sort integers, but it's not limited...
View ArticleJava Weekly, Issue 298
Here we go… 1. Spring and Java >> Writing Custom Web Element Actions With TestProject [petrikainulainen.net] While web actions can access the entire DOM, which isn't always desired, web element...
View ArticleGet Started with Java
Java is one of the most popular programming languages, often used for building web and enterprise scale applications. This collection of tutorials will help you get started with the basic concepts in...
View ArticleCreate a File in a Specific Directory in Java
1. Overview In this quick tutorial, we're going to look at how to create a file in a specific directory. We'll see the difference between absolute and relative file paths, and we'll use paths that work...
View ArticleUnmarshalling Dates Using JAXB
1. Introduction In this tutorial, we're going to see how to unmarshal date objects with different formats using JAXB. First, we'll cover the default schema date format. Then, we'll explore how to use...
View ArticleLogistic Regression in Java
1. Introduction Logistic regression is an important instrument in machine learning (ML) practitioner toolbox. In this tutorial, we'll explore the main idea behind logistic regression. First, let's...
View ArticleRepositories with Multiple Spring Data Modules
1. Introduction Sometimes we need to connect to more than one database technology in the same application. In this tutorial, we'll explore the various configuration options when it comes to using...
View ArticleTwelve-Factor Methodology in a Spring Boot Microservice
1. Overview In this tutorial, we'll understand the twelve-factor app methodology. We'll also understand how to develop a microservice with the help of Spring Boot. In the process, we'll see how to...
View ArticleBucket Sort in Java
1. Introduction In this article, we'll dive into the bucket sort algorithm. We'll start with a quick bit of theory, before working on the Java implementation alongside unit testing our solution....
View ArticleUsing JDBI with Spring Boot
1. Introduction In a previous tutorial, we covered the basics of JDBI, an open-source library for relational database access that removes much of the boilerplate code related to direct JDBC usage. This...
View ArticleChanging the Logging Level at the Runtime for a Spring Boot Application
1. Introduction In this tutorial, we're going to look at ways we can change the logging level of a Spring Boot application at runtime. As with many things, Spring Boot has built-in logging...
View ArticleComparing Dates in Java
1. Introduction In this tutorial, we'll focus on how to compare dates using the Java 8 Date/Time API. We'll dive into different methods to check whether two dates are equal and how to compare dates. 2....
View ArticleConvert XML to HTML in Java
1. Introduction In this tutorial, we'll describe how to convert XML to HTML using common Java libraries and template engines – JAXP, StAX, Freemarker, and Mustache. 2. An XML to Unmarshal Let's start...
View ArticleJava Weekly, Issue 299
Here we go… 1. Spring and Java >> Definitive Guide to Java 13 [blog.codefx.org] Java 13 was released this week — see what's new or changed in the language itself, plus a few API improvements and...
View ArticleCategories in Groovy
1. Overview We may sometimes wonder if we can add a few additional handy methods to compiled Java or Groovy classes where we don't have the ability to modify the source code. As it turns out, a Groovy...
View ArticleSpring Validation Message Interpolation
1. Introduction Message interpolation is the process used for creating error messages for Java bean validation constraints. For example, we can see the messages by providing a null value for a field...
View ArticleUsing Multiple Source Objects with MapStruct
1. Overview In this tutorial, we'll see how to use multiple source objects with MapStruct. 2. Single Source Object The most common use case for MapStruct is to map one object to another. Let's assume...
View ArticleJava Weekly, Issue 300
We've hit 300 and going strong. The Java Weekly has been giving my week cadence for over 5 years now, and I'm excited about the next 5 Hope you've been enjoying the ride. Here we go: 1. Spring and Java...
View ArticleUsing a Slash Character in Spring URLs
1. Introduction When we develop web services, we may need to deal with complex or unexpected URL paths that can contain slashes. As a consequence, we may encounter issues with the web servers or...
View ArticleCoping in Linux with Visual Progress
1. Overview In this tutorial, we'll learn how to display copy progress and speed on Linux. 2. Single File rsync is a file-copying tool that works for remote as well as local copies. It isn't always...
View Article