Article
In this short tutorial, you'll learn how to reverse a list in-place and out-of-place in Java. When performing operations on lists - you might want to consider whether the operations are done in-place (changes are enacted on the original object), or whether they're out-of-place (changes are enacted on a copy,...
David Landup
Jackson is a very common library for handling JSON and serialization/deserialization in general in Java and Spring Boot based projects. Jackson handles property names by mapping them as they are to JSON - so propertyName in a POJO will have a corresponding propertyName in JSON. This convention is followed...
Jackson is one of the most common libraries for working with serialization and deserialization in Java and Spring Boot, primarily used for parsing and converting between POJOs and JSON. Though, if you've worked with Jackson, you'll notice a distinct lack of pretty-printing by default: {Task 1=In_Progress, Task 2=...
Counting the number of word occurrences in a string is a fairly easy task, but has several approaches to doing so. You have to account for the efficiency of the method as well, since you'll typically want to employ automated tools when you don't want to perform manual labor -...
Interfaces in Java are one of the basic concepts of object-oriented programming that are used quite often alongside classes and abstract classes. An interface represents a reference type, meaning that it is essentially just a specification that a particular class that implements it needs to obey. Interfaces can contain only...
Branko Ilic
Calculating the square root of a number is one of the common operations we do in computer science. This simple mathematical function finds its use in all areas of programming - be it in algorithms or any other mathematical model we wish to represent, we'll most likely use square roots...
More often than not we find ourselves counting the number of days from or to a particular date. Luckily, doing just that in Java is not very hard, and there are also quite a few ways to do it. So, in this article, we'll be taking a look at how...
Jackson is a powerful and efficient Java library that handles the serialization and deserialization of Java objects and their JSON representations. It's one of the most widely used libraries for this task, and runs under the hood of many other frameworks. For instance, while the Spring Framework has support for...
Reham Muzzamil
Spring Boot applications ship with an embedded server, and the default port for them is 8080. Whether some other service already inhibits this port, or whether you'd like to create a new microservice on a new one - in this guide, we'll take a look at how to configure the...
© 2013-2024 Stack Abuse. All rights reserved.