Java

Articles on the Java programming language.
Aug
13
Java For-Each Loop

Java For-Each Loop

For-each loops allow you to execute a block of code for every item in a collection.
1 min read
Aug
12
Java Do-While Loop

Java Do-While Loop

A do-while loop always executes once and then executes until a condition is false.
1 min read
Aug
09
Java While Loop

Java While Loop

While loops repeatably execute a block of code while a condition is met.
1 min read
Aug
08
Java For Loop

Java For Loop

For loops allow you to execute a block of code a fixed number of times.
1 min read
Aug
02
Java Text Blocks

Java Text Blocks

Text blocks add clarity by reducing the syntax needed to build a string.
2 min read
Jul
26
The Case Against Checked Exceptions in Java

The Case Against Checked Exceptions in Java

Checked exceptions are great on paper, but not in practice.
4 min read
Jul
24
The Case for Checked Exceptions in Java

The Case for Checked Exceptions in Java

Checked exceptions are exceptions that are checked at compile time.
4 min read
Jul
19
Java Import Statement

Java Import Statement

Imports allow you to use a class by its name that is outside of the package you are in.
2 min read
Jul
16
Java Switch Statement

Java Switch Statement

Switch statements execute one or more blocks of code based on an expression.
2 min read
Jul
11
Java try-with-resources Statement

Java try-with-resources Statement

Let Java handle closing your resources.
2 min read