Multi Dimensional ArrayList in Java 1. Overview Creating a multidimensional ArrayList often comes up during programming. In many cases, there is a need to create a two-dimensional ArrayList or a three-dimensional ArrayList. In this tutorial, we’ll discuss how to create a multidimensional ArrayList in Java. 2. Two-Dimensional ArrayList Suppose we want to represent… Continue Reading java-multi-dimensional-arraylist

Find Substrings That Are Palindromes in Java 1. Overview In this quick tutorial, we’ll go through different approaches to finding all substrings within a given string that are palindromes. We’ll also note the time complexity of each approach. 2. Brute Force Approach In this approach, we’ll simply iterate over the… Continue Reading java-palindrome-substrings

Anonymous Classes in Java 1. Introduction In this tutorial, we’ll consider anonymous classes in Java. We’ll describe how we can declare and create instances of them. We’ll also briefly discuss their properties and limitations. 2. Anonymous Class Declaration Anonymous classes are inner classes with no name. Since they have no… Continue Reading java-anonymous-classes

A Guide to JGit 1. Introduction JGit is a lightweight, pure Java library implementation of the Git version control system – including repository access routines, network protocols, and core version control algorithms. JGit is a relatively full-featured implementation of Git written in Java and is widely used in the Java… Continue Reading jgit