THE DESIGN PATTERNS JAVA COMPANION 1. Creational Patterns 17 The Factory Pattern 18 How a Factory Works 18 Sample Code 18 The Two Derived Classes 19 Building the Factory 20 Factory Patterns in Math Computation 22 When to Use a Factory Pattern 24 Thought Questions 25 The Abstract Factory Pattern 26 A GardenMaker Factory 26 How the User Interface Works 28 Consequences of Abstract Factory 30 Thought Questions 30 The Singleton Pattern 31 Throwing the Exception 32 Creating an Instance of the Class 32 Static Classes as Singleton Patterns 33 Creating Singleton Using a Static Method 34
标签: Creational COMPANION PATTERNS Patterns
上传时间: 2013-12-20
上传用户:xwd2010
该程序为GPS数据采集程序,AppWizard has created this GPS application for you. This application not only demonstrates the basics of using the Microsoft Foundation Classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your GPS application.
上传时间: 2014-11-27
上传用户:jcljkh
科学与工程数值计算算法 1、本书附赠的光盘包含了本书中全部的源代码。使用时只需将相应的目录拷贝到您的硬盘中。 注意 拷贝到硬盘上的源文件的属性如果成为只读的,在编译之前应该将它们的属性改为可读写的。 2、光盘各目录中的内容如下所示: 光盘目录 内容说明 \Source\ChapterN 第N章的所有示例工程源程序 \Source\Classes 本书所有算法类的源程序 \Source\Lib 集成本书所有算法的静态库文件 \Source\Dll 集成本书所有算法的动态库文件
上传时间: 2016-10-21
上传用户:Ants
本教程举例说明了如何使用 ADO 编程模型对数据源进行查询及更新。教程首先讲述了完成此项任务的必要步骤,然后分别通过 Microsoft Visual Basic、以 VC++ Extensions 为特征的 Microsoft Visual C++、Microsoft Visual Basic、Scripting Edition 和以 ADO for Windows Foundation Classes (ADO/WFC) 为特征的 Microsoft Visual J++ 进行更为具体的说明。
上传时间: 2016-10-22
上传用户:xymbian
这是一个在线考试系统 数据库用的SQLSERVER,exam文件为数据库的备份文件。 数据库配置文件为\WEB-INF\Classes\examinlinejdbcsql.properties
上传时间: 2016-10-24
上传用户:JIUSHICHEN
Thinking in Java, 3rd ed. Revision 4.0 Preface Introduction 1: Introduction to Objects 2: Everything is an Object 3: Controlling Program Flow 4: Initialization & Cleanup 5: Hiding the Implementation 6: Reusing Classes 7: Polymorphism 8: Interfaces & Inner Classes 9: Error Handling with Exceptions 10: Detecting Types 11: Collections of Objects 12: The Java I/O System 13: Concurrency 14: Creating Windows & Applets 15: Discovering Problems 16: Analysis and Design A: Passing & Returning Objects B: Java Programming Guidelines C: Supplements D: Resources Index
标签: Introduction Thinking Revision Preface
上传时间: 2014-07-13
上传用户:netwolf
数据库: hospital,MySQL 数据库用户名/密码: root/(空) 数据库参数存放文件:WEB-INF\Classes\hospital\db\DBConnection.java,需要重编译 系统登录用户名/密码: 管理员:admin/admin 病人:自己注册之 医生:用管理员添加,初始密码与编号相同。 测试地址:http://localhost:8080/hospital/ 数据库名称为:hospital 此脚本中含有初始化数据 admin, doctor, images, patient是与页面相关的文件夹 hospital.jpx是JBuilder工程文件,用来编辑db包
上传时间: 2013-12-18
上传用户:372825274
Produce a Java program to calculate the value of π in two different methods proposed by Francois Vieta and John Wallis. Design and implement a super-class Estimation two sub-Classes (FrancoisVieta and JohnWallis) and an application class.
标签: calculate different Francois proposed
上传时间: 2013-12-27
上传用户:84425894
Whenever there is an application to write, breaking it up to small pieces is a great idea. The smallest piece of any application would probably be a data object, or a simple Bean in Java. Java Beans are simple Java Classes that have a distinctive look and behavior. Their simplest purpose is to contain data and they accomplish this by having properties. Each property is actually a data-member containing/referencing the actual data and a couple of methods, a getter method and a setter method. Thus, the simplest data-bean describing a person could be expressed as such:
标签: small application Whenever breaking
上传时间: 2016-11-07
上传用户:lingzhichao
1.配置java环境,JDK1.5以上和安装MYSQL5.0(配置好java的环境变量) 2.在SQL文件里,把role.sql,sql.sql,insert.sql按照这个顺利插进MYSQL数据库里 3.修改FlashNetGame\Classes文件夹下面的hibernate.cfg.xml文件,修改里面的数据库连接地址和用户密码什么的 4.把NetGameFalsh文件夹里面的NetGame.swf的打包成.exe文件(如果你的电脑是可信任flash的就不需要) 5.下载spring和hibernate的包,然后把相关的jar文件放到FlashNetGame目录的lib文件夹下 6.准备好上面的那些工作之后,在FlashNetGame目录那里的build.xml文件,用ant编译 (如果没有装ant,可以执行org.game.server.StartServer这个主类,就可以启动服务器了) 7.把NetGameFalsh文件里面的NetGame.swf打包成exe文件(主要是flash的安全策略,如果你配置了你电脑,就不需要) 8.连接服务器,用内带的用户登陆就可以了(帐户:soda,密码:soda),或者可以在数据库手动添加
上传时间: 2016-11-08
上传用户:米卡