What is the purpose of the following Java code snippet?
public void increaseCounter() { counter++; }
To check if the counter variable is greater than zero
counter
To increase the value of the counter variable by one
To reset the counter variable to zero
To decrement the counter variable