Why are There Different Programming Languages?

There are many reasons why there are different programming languages. Evolving Technology One of the main reasons is that technology is always evolving, and as more technologies come into being and advance, we need more tools that can make use of these technologies. You might remember from previous classes with me, we’ve talked about how…

Java Sets

Java has two different types of sets, Unsorted and Sorted… even if Math Sets are technically unsorted. Unsorted Sets Unsorted sets in Java are not a class that can be defined. Therefore you need to use the HashSet and then use the polymorphic nature of the OOP to create the set. From here, you want…

Java Stacks

The Stack class is found in java.util and it extends the Vector Class. This means it can grow and shrink as needed, which is helpful for a Stack. As it extends a Vector, it is helpful to Parameterize the constructor. Just like the Stack that we’ve created, it has the same methods: push(), pop(), and…

Conditions in Java

You will find conditions in Java familiar if you are used to using boolean conditions in C/C++. However, noticed that I said boolean conditions. That is because Java wants boolean conditions, those that generate a true or false answer, instead of the C/C++ conditions which actually look for an integer value. Notice the following below…