String filename = new String();
		while (i < 70)
		    {
			filename =  i+".png";
			URL alphaurl = ImageF.class.getResource(filename);
			Image[i] = new ImageIcon(alphaurl);
			i++;
		   }

I want to store 70 images into an array. But I am not able to store it into the array using the getResource() method. When I specify the path myself and not sing the url I am able to store it. What might be the problem?