So I'm having a little problem, the sound file does not play and the program stops running. Here is the code ;
public void collect()
{
if(isTouching(Jhope.class))
{
removeTouching(Jhope.class);
Greenfoot.playSound("Jhope_chant.wav");
}