Package demo

Source Code of demo.SimpleDemo

package demo;

import core.DefaultGreetingGenerator;
import core.GreetingGenerator;
import core.SimpleGreetingService;

public class SimpleDemo {

  public static void main(String[] args) {
    GreetingGenerator generator = new DefaultGreetingGenerator();
    SimpleGreetingService service = new SimpleGreetingService(generator);
    service.greet("World");
  }

}
TOP

Related Classes of demo.SimpleDemo

TOP
Copyright © 2018 www.massapi.com. 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.