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") } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -