public Image images[] = new Image[20];
for(i=0; i<10; i++){
images[i]=new Image(getClass().getResource("/images/"+i+".jpg"));
}
I am trying to add images to array but it gives the error Cannot instantiate the type Image j
What can be the reason?