arrays - Changing Filenames(Strings) through loops - Java -
i want change images @ specific location, purpose of animation. can create loop change in file names. file names sprite1.png, sprite2.png ...... sprite10.png.
for(i = 1; <= 10; i++) { display("sprite(i).png") }
is possible? how?
lets there n files. can achieve desired output using following piece of code
for(i=1;i<=n;i++){ display("sprite"+i+".png") }