Skip to content

Commit 9ff2f19

Browse files
committed
✨ 🍱 🎉 Init add simple example app client application
1 parent ad5eef6 commit 9ff2f19

File tree

1 file changed

+23
-0
lines changed
  • src/creational/builder/java/io/github/hooj0/builder/support/simple

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package io.github.hooj0.builder.support.simple;
2+
3+
/**
4+
* simple example app client application
5+
* @author hoojo
6+
* @createDate 2018年10月14日 下午10:53:41
7+
* @file App.java
8+
* @package io.github.hooj0.builder.support.simple
9+
* @project design-patterns
10+
* @blog http://hoojo.cnblogs.com
11+
12+
* @version 1.0
13+
*/
14+
public class App {
15+
16+
public static void main(String[] args) {
17+
Product product = new Product.Builder("mouse").size(1).build();
18+
System.out.println(product.getName());
19+
20+
product = new Product.Builder("keyboard").size(50).price(53.0f).orderNo("122234234").build();
21+
System.out.println(product.getName());
22+
}
23+
}

0 commit comments

Comments
 (0)