Given an integer variable timer, write a statement that uses the auto-decrement operator to decrease the value of that variable by 1.

Language: Java

Challenge:

Given an integer variable timer, write a statement that uses the auto-decrement operator to decrease the value of that variable by 1.

 

SOLUTION:

Language: Java

Challenge:

Given an integer variable timer, write a statement that uses the auto-decrement operator to decrease the value of that variable by 1.

 Solution:

timer --;