How to print an Array List on multiple lines?
<p>I'm doing the MOOC java course, and I'm stuck on exercise 76. Whenever I submit the answer it tells me to print each meal to a seperate line. How would I go about doing this?</p>

<p>Main class </p>

<pre><code>public class Main {
    public static void main(String[] args) {
        Menu exactum = new Menu();


        exactum.addMeal("Fish fingers with sour cream sauce");
        exactum.addMeal("Vegetable casserole with salad cheese");
        exactum.addMeal("Chicken and nacho salad");

        exactum.printMeals();


        exactum.clearMenu();
        exactum.printMeals();
    }
}
</code></pre>

<p>Menu class</p>

<pre><code>import java.util.ArrayList;

public class Menu {

    private ArrayList&lt;String&gt; meals;

    public Menu() {
        this.meals = new ArrayList&lt;String&gt;();
    }

     public void addMeal(String meal) {
         if (!meals.contains(meal)) {
         meals.add(meal);      
     }
    }
      public void printMeals() {
          if (!meals.isEmpty())
          System.out.println(this.meals);
      }

      public void clearMenu(){
          meals.removeAll(meals);
      }

}
</code></pre>

<p>Output</p>

<pre><code>[Fish fingers with sour cream sauce, Vegetable casserole with salad cheese, Chicken and nacho salad]
</code></pre>