CHAPTER 9 — Variables and Assignment Statements

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to home page   hear noise   go to next page

revised 9/26/98, 7/27/99, 01/17/00, 04/23/00, 02/11/04, 01/10/06, 07/20/08

CHAPTER 9 — Variables and Assignment Statements

In all but the smallest programs, an executing program is constantly working with values. These values are kept in little sections of main memory called variables.

Box o' Bits

Chapter Topics:

  • Variables
  • Assignment Statements
  • Expressions
  • Arithmetic Operators

QUESTION 1:

Do you imagine that a variable can change its value?