Code for the GOCC Java class