Arrays in Java

We’ve talked about arrays, now let’s look at how they are created in Java. In a general form, you can find something like below: Obviously type would be something like int, float, or even a class name as you can have an array of objects. Declaring an Array This means that the following are ways…

Intro to Java Classes – Getters, Setters, and other Methods

In our previous example, we had a class with a default constructor where we passed no arguments into the class. That is great, unless you want to set one or more class variables with data at run time. So lets look at overloading the class constructor. In this example, we keep our default constructor, but…

Intro to Java Classes

This introduction/refresher to Java Classes is assuming that you’ve worked with some Object Oriented language before, like C++, or maybe even Java and you just need a quick refresher. In Java, everything you build will be a class, with very few exceptions. to define a class, you will need a file name, with the same…