JUnit 5 resources
The resources page has been updated to include a link to the JUnit5 User Guide—specifically, to the “Writing Tests” section. This section has a number of good examples, and is quite comprehensive. Actually, it can be a bit overwhelming; thus, I recommend focusing on these annotations for the tests and supporting methods:
…XML resources
XML (eXtensible Markup Language) is used in many aspects of Java development—including Maven Project Object Model (POM) files, XML-based properties files, configuration files for Java servers and deployment artifacts, layouts for JavaFX and Android GUIs, etc.
…Regular expression resources
Many beginning programmers learn the basics of regular expressions, but make little effort to master their use—until they’re working in the field, and they start to notice that programmers with solid practical regex skills are often able to marshal those skills to solve a wide variety of text-processing problems more efficiently (in developer hours and lines of code) than programmers without such skills. No matter what a developer’s primary programming language is, mastering regular expressions is an achievable and worthwhile goal.
…End-of-week-2 coding assignment
Exercising basic techniques for flow control, arrays, strings, method invocation, throwing exceptions.
We’ve had some good progress since the end of week 1. This weekend, the coding assignment includes problems that are more involved than most of the CodingBat problems, but they don’t individually require as much reading as the alternative radices problem we worked on this week.
…Alternative radices coding exercise
Implementing an algorithm for representation of an integer using an arbitary number base
Building on the reading task sent out Tuesday afternoon, we have a coding exercise to complete: implementation of an algorithm for constructing a representation, in any integral number base (radix) from 2 to 36, of an input integer value. Please note, however, that the point of the exercise isn’t really conversion of number representations between radices, but practicing our understanding of Java iteration statements, conditional statements, and exceptions.
…