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