I'm a second year student just starting to pick up Java. I have this bit of code and it keeps throwing the exception:
try
{
masterFish = ImageIO.read(getClass().getResource("fish1.gif"));
}
catch (IOException iOException)
{
iOException.printStackTrace();
}
Could someone explain the fish1.gif
part? Am I supposed to have an image called fish1.gif
downloaded somewhere?