* Do note in this post, I’m referring to a normal array, not the Arrays class in Java. All these are snippets of code, so remember to import the ArrayList package when you need to use the ArrayList class. I’m going to break this down into differences and similarities. Differences Between a Java ArrayList and… Read More Java: ArrayList vs Array
In most programming languages, there are two commonly used loops: for and while loops. This goes the same for Java, which is widely used as an (object-oriented programming) OOP language. In this post, you will learn which loop is suitable under which situation, and how to construct your loops based on a problem. Which Loop… Read More Java: It’s a Loopy Situation!