Practical Coding in Java
Learn to write and validate your own code
Darren Kessner, PhD
(revised October 21, 2025)
Introduction
About the book
About the author
Resources
0. Hello, world!
Hello
Basics
Loops
Sequences
Coding Exercises: Hello
1. Functions and Testing
Conditions and Comparisons
Logical Operators
Functions
MonkeyTrouble
Coding Exercises: Functions and Testing
2. Strings and Math
Strings
HelloStrings
HelloMath
HelloRandom
Coding Exercises: Strings and Math
3. Loops and Algorithms
HelloLoops
HelloAlgorithms
Binimate
Coding Exercises: Loops and Algorithms
4. Classes and Objects
Person
PiggyBank
CoinFlipper
Circle
Coding Exercises: Classes and Objects
5. Arrays
HelloArrays
Average
Coding Exercises: Arrays
Appendix A: Numeric Conversion
Decimal and Hexadecimal
Converting from Decimal to Hex
Binary
Converting between Hex and Binary
Octal
Exercises: Numeric Conversion
Appendix B: Processing Libraries
HelloProcessing
Ball
Bounce
Coding Exercises: Processing Libraries
Next:
Introduction