Java is resetting my variables to zero, and other mysterious things

Printable View