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