Load a sprites image in java

I want to ask if why am getting error loading any sprite images into the object here is how I get the image in. import java.awt.image.BufferedImage; import java.io.IOException; public class …