-
Java Integer Overflow and Divide by Zero (Complete Beginner) →
Episode 9 of Complete Modern Java. Why two billion cents plus two billion cents prints a negative number: int overflow drawn as an odometer, long, Math.addExact, dividing by zero in Java, and the safe integer limit in TypeScript.
-
Java double vs BigDecimal: Why 0.1 + 0.2 Isn't 0.3 →
Episode 8 of Complete Modern Java. Why 1.10 + 2.20 prints 3.3000000000000003: doubles store binary, where one tenth never ends. The proof with BigDecimal, then two ways to keep money exact, whole cents and BigDecimal from text, in Java and TypeScript.
-
Java Operators and Integer Division (Complete Beginner) →
Episode 7 of Complete Modern Java. Why Java says a $10 bill split four ways is 2 each: expressions, the five arithmetic operators, integer division and the remainder, one double for decimals, operator order and the left to right trap, and TypeScript's one number type.
-
Values and Types in Java and TypeScript (Complete Beginner) →
Episode 6 of Complete Modern Java. Why Java printed Items: 21 for three items: value, variable, type, literal and assignment; int, double, boolean, String and char; the compiler refusing int price = 1.5; and TypeScript number, boolean, string and inference.
-
Use the Debugger in Java and TypeScript (Complete Beginner) →
Episode 5 of Complete Modern Java. A receipt that prints $4.99 with no error, found with a breakpoint: Run versus Debug, pausing before a line runs, Step Over, Evaluate, Resume, and the free TypeScript route with node --inspect-brk and Chrome DevTools.
-
Read Your First Errors in Java and TypeScript (Complete Beginner) →
Episode 4 of Complete Modern Java. The four kinds of error, broken on purpose in Java and TypeScript: syntax, compile, runtime and logic. What each message says, where to look, how to read a stack trace, and one habit for every error.
-
Install Node.js and TypeScript on a Mac (Complete Beginner) →
Episode 3 of Complete Modern Java. Node, npm and TypeScript installed with no admin password, the .zshrc a new Mac does not have, TypeScript installed in the project, the grocery receipt rebuilt in TypeScript, and a TypeScript program that is wrong and runs anyway.
-
Install Java 25 and IntelliJ IDEA on a Mac (Complete Beginner) →
Episode 2 of Complete Modern Java. A fresh IntelliJ IDEA, Java 25 downloaded from inside it, the grocery receipt program typed and run, and then the part most setups get wrong: the terminal still finds an old Java. Why that happens, how to fix it for one window, and how to run the program without an IDE.
-
Your First Java Program, Explained: From Code to Result →
The first episode of Complete Modern Java, for complete beginners. One small grocery receipt program, typed line by line and run in Java and in TypeScript: what source code is, what a compiler and a runtime do, the terminal and the IDE. Then one tiny change: Java refuses to compile, and TypeScript reports the same mistake but still produces a program that prints "Items: 2one" and "Total: $NaN".
-
I Built a Spring Boot AI Agent That Pays for APIs: HTTP 402, MPP and MCP in Java →
A Spring Boot courier API answers HTTP 402 Payment Required. A hand-written Java client reads the challenge, pays five test cents on the Tempo test network and asks again with proof of payment. An AI assistant calls it over MCP. Then it breaks twice: it pays five dollars when the price changes, and pays twice when a paid response is lost. The fixes are a payment policy that refuses before anything is signed and a recovery workflow that never pays again. Every payment is a real testnet transaction you can open.