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 集成本書所有算法的靜態(tài)庫文件 \Source\Dll 集成本書所有算法的動態(tài)庫文件
上傳時間: 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
這是一個在線考試系統(tǒng) 數據庫用的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,需要重編譯 系統(tǒng)登錄用戶名/密碼: 管理員:admin/admin 病人:自己注冊之 醫(yī)生:用管理員添加,初始密碼與編號相同。 測試地址: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環(huán)境,JDK1.5以上和安裝MYSQL5.0(配置好java的環(huán)境變量) 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,可以執(zhí)行org.game.server.StartServer這個主類,就可以啟動服務器了) 7.把NetGameFalsh文件里面的NetGame.swf打包成exe文件(主要是flash的安全策略,如果你配置了你電腦,就不需要) 8.連接服務器,用內帶的用戶登陸就可以了(帳戶:soda,密碼:soda),或者可以在數據庫手動添加
上傳時間: 2016-11-08
上傳用戶:米卡