MCPcopy
hub / github.com/iluwatar/java-design-patterns / main

Method main

factory/src/main/java/com/iluwatar/factory/App.java:43–49  ·  view source on GitHub ↗

Program main entry point.

(String[] args)

Source from the content-addressed store, hash-verified

41 * Program main entry point.
42 */
43 public static void main(String[] args) {
44 LOGGER.info("The alchemist begins his work.");
45 var coin1 = CoinFactory.getCoin(CoinType.COPPER);
46 var coin2 = CoinFactory.getCoin(CoinType.GOLD);
47 LOGGER.info(coin1.getDescription());
48 LOGGER.info(coin2.getDescription());
49 }
50}

Callers 1

Calls 2

getCoinMethod · 0.95
getDescriptionMethod · 0.65

Tested by 1