Category: Java

What is recursion? Recursion is a powerful programming technique 0

What is Recursion?

In this article we will explain some of the key concepts of recursion, which is a widely used and extremely powerful programming technique. If you’re serious about your programming career, or just want to expand your programming knowledge, you should definitely get at least a basic understanding of recursion. So, let’s...

infix postfix conversion and infix prefix conversion 0

Infix, Prefix and Postfix notation

If you have been dealing with mathematical expressions, you might have heard of infix, prefix and postfix notation. If you have never heard of these kind of ways to write mathematical expressions, don’t be afraid. You already use one of them on a day-to-day basis. We’ll come back to which...

The stack is one of the most basic data structures in computer science 0

What is a stack?

In this article we give you a description of what a stack is, and when this type of data structure is used. At the end of the article, we implement a custom stack in Java. Let’s start this one of with an analogy: Assume you have a stack of bills,...

Visualization of an array 0

The ArrayList – A fundamental data structure

Let’s take a look at a great data structure provided in Java – The ArrayList. The ArrayList is a standard Java class which resides in the java.util package. In other words, you don’t have to add any libraries or dependencies to your project – the ArrayList is already there, or...

visualization of insertion into a linked list 0

Implementing a Linked List in Java

Today we are going to have a look at an interesting data structure, the Linked List. We’ll start of by describing the nature of a Linked List, before implementing a Linked List in Java. What is a Linked List? A linked list is a collection of data elements, stored in...