Java: List Files in a Directory
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 this,...
Java Iterable Interface: Iterator, ListIterator, and Spliterator
While we can use a for or while loop to traverse through a collection of elements, an Iterator allows us to do so without worrying about index positions and even allows us to not only go through a collection, but also alter it at the same time, which isn't always...