Integer Literals

In order to write an integer in a program, you write an "integer literal."

789

We call them this because the integer is literally written down in the program.

int trueCrime = 789;

For longer literals, consider using underscores (i.e. '_') to separate parts of the number

int oneMillion = 1_000_000;

This also works not just in decimal but also in binary, octal, and hexadecimal literals.