I have a ruby backround and im new to java i wrote a basic programm but somehow i get a error i cant fix! My code:
import java.util.ArrayList; public class Musi
files is an ArrayList and not an Array instead of doing files[i] you must do this-
ArrayList
Array
files[i]
for(int i = 0; files.size() <= i; i++){ System.out.println( i + ". Ist: " + files.get(i)); }