This morning, I wrote:. . . there is no uch thing as a number contant −1.
Apart from the many spellling errrors, that should have read number
literal. Sorry.
Most things in Java® and indexed starting 0, which means when you get to index 1, you have moved 1 place from the first index.
People count 1‑based which means when you count 1, you have counted 1 item. I can think of two 1‑based things in Java®: the number of the index for the % tags (see
the Formatter documentation) and order of fields in a reult set and other database results. As Stephan says, get used to both; you will find that integer arithmetic and 0‑based indexing match each other well.