Hi,
I'm new to programming and I'm trying to use the following code in order to save several images in a vector from which later a random image is called.
GreenfootImage img;
public void setimg()
{
img= new GreenfootImage("30.gif");
img= new GreenfootImage("uev.gif");
}
When I compile, the error NullPointerException occurs at setimg(), could anyone help me with this please?