Alonso Del ArteUse type pattern matching in Java 17 and laterExperienced Java developers can probably think of a few examples in which they wrote something along these lines:Jul 18Jul 18
Alonso Del ArteHelpful null pointer exception messages now standard in Java 21In the old days of Java, null pointer exceptions came with exception messages that were often null themselves. That was annoying.Jul 14Jul 14
Alonso Del ArteThe Javadoc Use pagesAt the top of a standard Javadoc page for a Java class or interface, viewed in your favorite Web browser, you’re going to see links for…Jul 12Jul 12
Alonso Del ArteA subtlety of Assert Equals in TestNGTo check that two arrays are equal in JUnit, you have to use assertArrayEquals(). TestNG doesn’t have assertArrayEquals(), so you just use…Jul 4Jul 4
Alonso Del ArteCompiling Java on the command lineAside from maybe Hello World, most of you have probably never compiled a Java program on the command line. And why would you? An integrated…Jul 3Jul 3
Alonso Del ArteGitHub can now render TeX in markdownFor a long time, my Algebraic Integer Calculator project on GitHub did not have any explanation of any of the pertinent mathematical…Jul 2Jul 2
Alonso Del ArteQuick tutorial: writing a comparator in JavaComputers are constantly sorting things for us. Shopping results by price from lowest to highest. Athletes by one stat or another. Movies…Jun 19Jun 19
Alonso Del ArteWhen private doesn’t quite mean what you think it means, Java editionPrivate access in Java is about regulating scope at compile time, not enforcing security measures at runtime. When something is declared…Jun 17Jun 17
Alonso Del ArteRube Goldberg machine for checking if an integer is a power of 2A software developer should never be proud of his program being longer than it needs to be. Unless of course the program is longer than it…May 17May 17
Alonso Del ArteCommand line basics, Apple editionThe change from Mac OS 9 to Mac OS X brought a lot of UNIX tools to Apple’s computers, like the scheduler called “cron” and the text editor…Apr 22Apr 22