![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件工程
文章平均质量分 67
xiaoou0725
我今天只走这么远,只有明天才能为我指明方向。
展开
-
两段代码。。。
今天在看《JAVA设计模式》的时候,在单例模式中有这样一个实例public class A{private static A a;private static Object classLock=a.class;private A(){ // ...... }public static A getA(){Synchronized(classLocked){ if(a原创 2008-11-19 16:22:00 · 495 阅读 · 0 评论 -
顾客收银员问题和FDD
如果有下面的某一个特征集:Making a product sale 以下是根据该特征集得到的特征:Add the product to a shopping cartDisplay the technical-specifications of a productStore the shipping-information for a customer 假设在上面原创 2008-11-19 16:41:00 · 719 阅读 · 2 评论 -
等价类划分法实例
基本概念:等价类:对应用程序的规格(接口)的输入数据构成的集合有效等价类:对应用程序的规格说明来说是合理的有意义的输入数据;无效等价类: 六条确定等价类的原则1、在输入条件规定了取值范围或值的个数的情况下,则可以确立一个有效等价类(在范围之内的等价类)和两个无效等价类(有效范围的两侧)。 2、在输入条件规定了输入值的集合或者规定了“必须如何”的条件的情况下,则可以原创 2009-12-18 13:21:00 · 19075 阅读 · 17 评论