title: array required, but ArrayList<String> found
body: <p>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:</p>
  
  <pre><code>import java.util.ArrayList;
  
  public class Music {
  
      private ArrayList&lt;String&gt; files;
  
  
      public static void main(String args[]){
  
          Music a = new Music();
          a.addFile("Chasen Paper");
          a.addFile("Mama");
          a.addFile("Hell Yes");
          a.removeFile("Hell Yes");
      }
      public Music(){
        files = new ArrayList&lt;String&gt;();
      }
  
      public void addFile(String filename){
          files.add(filename);
      }
  
      public void returnFiles(){
          for(int i = 0; files.size() &lt;= i; i++){
              System.out.println( i + ". Ist: " + files[i]);
          }
  
      }
  
      public void removeFile(String filename){
          System.out.println("Vorher gab es " + files.size() + " Dateien");
          files.remove(filename);
          System.out.println("Jetzt gibt es " + files.size() + " Dateien");
      }
  }
  </code></pre>
  
  <p>When i try to compile it i get somehow this error: What did i wrong? Thanks!</p>
  
  <pre><code>Music.java:26: error: array required, but ArrayList&lt;String&gt; found
              System.out.println( i + ". Ist: " + files[i]);
  </code></pre>