public class Main {
public static void main(String[] args) {
/* Give me olives, a press and a bucket; */
Press press = new Press(new Olive[] {
new GreenOlive(), new BlackOlive(),
new GreenOlive(), new BlackOlive(),
new GreenOlive()
}); // add five olives
press.add_olives(new Olive[] {
new BlackOlive(), new GreenOlive(),
new BlackOlive(), new GreenOlive(),
new BlackOlive()
}); // add five more olives
/* Run the machine and fill up our bucket; */
Oil bucket = press.crush();