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