Assumption: You are going to use the IDE called jGRASP.

To create a Gogga project you need to download the Gogga library published by Funworks. Funworks provides IT text books for grade 10, 11 and 12, both theory and Java.

Click here to download the libary. The library is called “it.jar”

Then you need to copy the jar file to the following folder . . . (on your C:\ drive unsing File Explorer)

Program Files(x86)/jGRASP/extensions/classes

If you do this, jGRASP will be able to create Gogga objects if you have the following line of code right at the beginning of your class

import it.*;    // import it full stop star semi colon

Gogga documentation here (13Mb)

Below are a few basic example Gogga classes to get you started. They demonstrate classes, objects, for loops, if selection statements and a getter method. Click on the links and they will download into your downloads folder.

Text files to view on the monitor

Box 1. Uses 4 “for loops”

Box 1A. Has only one “for loop”

Box 1C Uses four “while loops”

Box 1D. Uses only one “while loop”

This program offers dialog boxes using JOptionPane. The user is asked for input from the keyboard. Input from the keyboard arrives as String which must be cast to an integer value using “Integer.parseInt”. 

Gogga with Input


NOTE: You may need to open the files in Wordpad first, and then copy and paste to jGRASP or NetBeans in order to get the correct formatting. 

A loop within a loop follows. The outer loop – the four sides of the box. The inner loop draws the sides of the box 15 units is size


In the following program the start postion is random. Then a counter is used to change the colours of the box


Here the Gogga moves without drawing a line


Here the Gogga has built in logic and uses an if statement to decide when to turn. It gets the position from the “getYPost( )” method which tells it where it is.


Gogga with keyboard input and validation to ensure good data


A fun activity to bet on your favourite colour.

Play Gogga Roulette