Package com.theryanclark.op.input

Examples of com.theryanclark.op.input.GreenOlive


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();
View Full Code Here

TOP

Related Classes of com.theryanclark.op.input.GreenOlive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.