java gogo program