Tag: java

Total 125 Posts

Shell Sort in Java

Introduction

Sorting algorithms are algorithms that rearrange a collection's members in a certain order. The order criteria can vary and it is typically user-defined.

In practice, the order criteria is provided to the algorithm as a method that compares two objects and returns:

  • 0: If the compared entities are considered
Continue Reading

Java: List Files in a Directory

Introduction

A lot of applications handle files in some way and file manipulation is one of the core knowledges in any programming language.

In order to manipulate files, we need to know where they're located. Having an overview of files in a directory is paramount if we want to accomplish

Continue Reading