Who took the first picture of a sprite

Load a sprites image into Java

I want to ask why there is an error loading sprite images into the object

Here is how I get the picture.

This is how I do it

I would also like to ask about my way of using the sprites array. I want to use the timer by changing the picture drawn by the action event by changing the current sprite picture

with the method

Each rock object has a sprite array full of buffered images received from the loaded sprite image and a current image that is being drawn. The timer changes the current image and redraws it on the object so that the entire sprite is drawn, but it doesn't seem to work. So is it my loadingSpriteImage causing the problem or my way of drawing it?