Java IntStream Conversions 1. Introduction In this quick tutorial, we’ll go through all the possibilities regarding IntStream conversions to other types. Interesting readings about boxing and unboxing or iterating are recommended as a complement of this tutorial. 2. IntStream to Array Let’s start exploring how we can convert from an… Continue Reading java-intstream-convert

Basic Introduction to JMX 1. Introduction The Java Management Extensions (JMX) framework was introduced in Java 1.5 and has found widespread acceptance in the Java developers community since its inception. It provides an easily configurable, scalable, reliable and more or less friendly infrastructure for managing Java application either locally or… Continue Reading java-management-extensions

Implementing Simple State Machines with Java Enums Algorithms Java 1. Overview In this tutorial, we’ll have a look at State Machines and how they can be implemented in Java using Enums. We’ll also explain the advantages of this implementation compared to using an interface and a concrete class for each… Continue Reading java-enum-simple-state-machine

Importance of Main Manifest Attribute in a Self-Executing JAR DevOps Java 1. Overview Every executable Java class has to contain a main method. Simply put, this method is a starting point of an application. To run our main method from a self-executing JAR file, we have to create a proper… Continue Reading java-jar-executable-manifest-main-class

Zipping Collections in Java 1. Introduction In this tutorial, we’ll illustrate how to zip two collections into one logical collection. The “zip” operation is slightly different from the standard “concat” or “merge”. While the “concat” or “merge” operations will simply add the new collection at the end of the existing… Continue Reading java-collections-zip