aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs192/513528/AppleController.java
blob: 6a8d93f88a05231836ebebccef21ce870ee4158b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package de.scrum_master.app;

import java.util.Arrays;
import java.util.List;

public class AppleController {
  private static final List<Apple> APPLES =
    Arrays.asList(new Apple("Granny Smith", false), new Apple("Golden Delicious", true));

  public static void main(String[] args) {
    AppleController appleController = new AppleController();
    System.out.println("Named: " + appleController.namedApples(APPLES, "Smith"));
    System.out.println("Sweet: " + appleController.sweetApples(APPLES));
    System.out.println("Sour:  " + appleController.sourApples(APPLES));
  }
}