-
Adding Shorts, Too! – Whoa, that’s Overloading!
If we define the same method name with different input parameters in the same class, Java will pick the correct one. This is called overloading. Read more…
-
Byte Adding – To Wrap or Not To Wrap?
Now that we understand byte over/underflow wrapping, let’s fix the TODOs from our prior post and make it return the desired value. Read more…
-
Primitive Bytes – Lets Add!
Let’s take a look at how Java handles integer values and what happens when they are too large or small to fit in the allowed space. Read more…
-
Hello, Maddie! – Fields and Simple String Formatting
Let’s make the application more personalized. Let’s change gorgeous to instead be a person’s name and create our first field (AKA instance variable). Read more…
-
JaCoCo – Java Code Coverage
We have a unit test that works some of our application’s code, but how much is really exercised during our build? Are we confident in our unit testing based upon how much of our code is covered? Enter the jacoco-maven-plugin. Read more…
-
Hello Gorgeous!
Take the first steps into Test Driven Development for Java. Update the unit test and then update the application code to match those expectations. Read more…
-
Java Comments
Be nice to your future self. Add comments to your code as you go. Let’s look a Java style comment formats. Read more…
-
Upgrade from JUnit 4 to JUnit 5
The Hello World! application was generated with JUnit 4, but let’s upgrade to JUnit 5 and run our first unit test locally. Read more…
-
Hello World! – Now Let’s Commit
Now that we have a starting code base, let’s commit it to a git repository for safe keeping. Read more…
-
Git Basics
Git is a Source Code Management (SCM) / version control system. A quick look at basic git concepts, such as local vs. remote and branches of code. Read more…
-
Local Setup – Git
Even if you are the only developer working on a code base, it is still good to put it into version control (SCM). Mistakes happen. You may start working on a change and not like how it turned out. Even if all goes well, with version control, you can look back at what has changed,… Read more…
-
Hello World! – A Java Application from a Simple Maven Project Archetype
Create, build and run a simple Maven-based Java project. Read more…
-
Local Setup – Maven
Want to build your Java project in a more reliable, consistent but configurable way? Install Maven locally to get started. Read more…
-
Local Setup – IDE – IntelliJ IDEA
Install an Integrated Development Environment (IDE) to aid in coding/testing/debugging activites. Read more…
-
Local Setup – Java
Before you can code, you need to setup your local environment. If you plan to use Java, that means installing a JDK. Read more…