-
Java
说明: 设计模式一(单子、工厂、策略模式)练习
1. 假设现在要设计一个贩卖各类书籍的电子商务网站的购物车系统。对所有的教材类图书 实行每本一元的折扣;对连环画类图书提供每本7%的促销折扣;而对非教材类的计算机图书有3%的折扣;对其余书没有折扣。使用策略模式、工厂模式、单子模式进行设计(Design Mode 1 (List, Factory, Strategy Mode) Exercise
1. Suppose we are going to design a shopping cart system for e-commerce websites that sell all kinds of books. All textbook books are discounted at one yuan per book; comic books are discounted at 7% per book; computer books are discounted at 3% for non-textbook books; and other books are discounted at no rate. Design using strategy mode, factory mode and single mode)
- 2020-07-01 06:40:02下载
- 积分:1
-
Sumofargs
import java.util.regex.Matcher;import java.util.regex.Pattern;public class SumOfArgs { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("java SumOfArgs"); int sum=0; int i; String s; label:for(int j=0;j
- 2022-03-23 12:48:22下载
- 积分:1
-
struts in action, 详细介绍action,form的使用方法。经典
struts in action, 详细介绍action,form的使用方法。经典-struts in action, detailing action, the use of form. Classical
- 2022-05-15 23:30:28下载
- 积分:1
-
WidgetClassLoader
Parser for the text file containing the list of widgets, layouts and layout params.
- 2014-01-17 12:01:20下载
- 积分:1
-
可以显示多个时间!见面友好!程序易懂好看!
可以显示多个时间!见面友好!程序易懂好看!-Can show multiple time! Meet friendly! Program pretty easy to understand!
- 2022-03-01 10:57:34下载
- 积分:1
-
隐藏密码
隐藏常量字符串资源 password.use 临警卫方法。
- 2023-04-21 01:25:04下载
- 积分:1
-
报价开发管理系统
报价管理系统,利用Java servlet jsp 完成的一个报价管理系统
- 2022-04-08 11:19:25下载
- 积分:1
-
ApiDemo
android ApiDemo 包含各种各样的用法(android ApiDemo)
- 2011-06-21 15:03:15下载
- 积分:1
-
java做的一个简单聊天多人程序,包括服务器端,和客户端,能实现实时的多人聊天。有改变字体大小、颜色、类型等功能。...
java做的一个简单聊天多人程序,包括服务器端,和客户端,能实现实时的多人聊天。有改变字体大小、颜色、类型等功能。-java to do more than a simple chat program, including server-side, and the client, to achieve real-time multiplayer chat.
- 2023-06-06 15:35:04下载
- 积分:1
-
学生数据库
应用背景和公司;及;及;及;及;及;及;及;及;及;及。您可以添加、删除、更新和查看学生的记录;关键技术 ; ; ; ; ; ; ; ; ;它是Android数据库应用。在这个应用中,我们可以创建学生数据库
- 2022-07-18 01:49:49下载
- 积分:1