@Test public void testDisplayArrayList() throws Exception { Assert.assertEquals(10, ArrayListDisplay.displayArrayList()); }
public static int displayArrayList() { int counter = 0; ArrayList<Coffee> coffees = new ArrayList<Coffee>(); for (Coffee c : new CoffeeGenerator(10)) { coffees.add(c); counter++; } System.out.println(coffees); return counter; }
ArrayListDisplay { public static int displayArrayList() { int counter = 0; ArrayList<Coffee> coffees = new ArrayList<Coffee>(); for (Coffee c : new CoffeeGenerator(10)) { coffees.add(c); counter++; } System.out.println(coffees); return counter; } }
ArrayListDisplay { public static int displayArrayList() { int counter = 0; ArrayList<Coffee> coffees = new ArrayList<Coffee>(); for (Coffee c : new CoffeeGenerator(10)) { coffees.add(c); counter++; } System.out.println(coffees); return counter; }  }
ArrayListDisplay { public static int displayArrayList() { int counter = 0; ArrayList<Coffee> coffees = new ArrayList<Coffee>(); for (Coffee c : new CoffeeGenerator(10)) { coffees.add(c); counter++; } System.out.println(coffees); return counter; }  static int displayArrayList(); }
ArrayListDisplay { public static int displayArrayList() { int counter = 0; ArrayList<Coffee> coffees = new ArrayList<Coffee>(); for (Coffee c : new CoffeeGenerator(10)) { coffees.add(c); counter++; } System.out.println(coffees); return counter; }  static int displayArrayList();  }