Java

Undirected Simple Graph Data Structure: Implementation and usage in Java

Graph Data Structure is an important tool to model real-world situations. In this post, you will learn one of the implementations of the TDA and an example of how to use it. To use a graph, you first have to understand when and why you can use it. As in other topics, you will find […]

Undirected Simple Graph Data Structure: Implementation and usage in Java Read More »

General Tree Data Structure: implementation and usage in Java

The General Tree data structure is one of the classic data structures studied in a Data Structure and Algorithms course. You will learn here how to implement the general tree data structure. So, let’s start by stating what do we mean by General Tree. General Tree Definition A tree is a mathematical model. Therefore, it

General Tree Data Structure: implementation and usage in Java Read More »

Exception handling in Java (with examples)

Exception handling is a must-use tool for programmers. It avoids the uncomfortable app crashes that we see often when using certain software. So, let’s get to it. What is an Exception? An exception in a programming language is an unexpected event that stops the current flow execution of a program. Some examples of exceptions are:

Exception handling in Java (with examples) Read More »