See Assignment, Arithmetic, and Unary Operators (The Java™ Tutorials > Learning the Java Language > Language Basics), mainly the remainder operator. Figure out when the remainder of i by 1000 is...