public void pay(String payType) {
switch (payType) {
case "wechat":
System.out.println("wc pay");
break;
case "alipay":
System.out.println("ali pay");
break;
case "bank card":
System.out.println("bank pay");
break;
case "cash":
System.out.println("cash");
break;
default:
System.out.println("error");
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
codeicu/design-pattern-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published