<%! public class IntegerObject { private int value; // No argument Constructor public IntegerObject() {value=0;} // One argument constructor; Initialize using parameter InitValue public IntegerObject(int InitValue) {value=InitValue;} // Sets (or resets) the value of the object public void SetValue(int N) {value = N;} // Return the value held by the object public int GetValue() {return(value);} // Increment value by the value of argument IncVal public void Increment(int IncVal) {value += IncVal;} } IntegerObject AccessCount=new IntegerObject(); %> <% AccessCount.Increment(1); out.println(AccessCount.GetValue()); %>