自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

loaferwang的专栏

共同讨论

  • 博客(110)
  • 资源 (40)
  • 收藏
  • 关注

原创 J2ME 认识

     在此只是介绍自己对J2ME的认识,高手级的人物就无须继续LOOK!     J2ME概念的了解:     学习Java以前就知道了JAVA有由J2SE,J2ME,J2EE这三部分组成,听说J2SE是基础,J2EE是网络版,J2ME是手机版;自己就摒弃了对J2ME的学习,因为当时没有什么感觉!现在手机业的无线网的发达,让我这种不追求时尚的人也开始使用智能手机,3G式手机哟,因此

2010-05-13 11:32:00 748

原创 hibernate 字符串

                 字符:字任是数字,字线,汉字,标点符号,图形符号等各种文字和符号的总称;                 字符集:字符集是各种字符的集合,通常由某些组织制定并命名的,如ASCII字符集,Unicode字符集,ISO-8859-1字符集,GB2312字符集,GBK字符集等;                汉字编码:计算机只能处理数字,计算机存储和处理汉字是通

2008-03-12 19:32:00 1088

原创 SQL 2k中,如何查询表结构(企业管理器中创建的表)

对于在SQL 2K 中,查询某张表的结构(也叫SQL 语句)步骤:第一:进入数据库,数据库--->表----> 右击(要查询结构的表);第二:选择“设计表”项:进行设计 界面,在工具框中,选择“生成SQL 脚本”按妞。之后,弹出一对话框;第二:在对话框中,设置"常规“”设置格式“,”选项“等设置;单击”确定;命名要保存的文件名,(默认为:*。sql 格式的,请自行保存一目录下,之后,再

2008-03-07 10:48:00 1325 2

转载 外网远程内网

<br />这几天因为一问题需要英国的技术支持远程访问公司内部的局域网(但由于种种原因,公司不能让其使用公司网络版的远程控制,因此只能自力更生),在网上苦苦寻找,但一直都没有发现完整的解决方案。经过几次尝试,现在验证可行,特把该解决方案分享给大家,该解决方案不需要设置任何的网关,直接可以使用,而且可以说可以连接任何地点的电脑,只要有网络存在,不管内网外网。 <br />    以下是部署的步骤:<br />1.从http://easy-vpn.comodo.com/ 下载软件EasyVPN<br />2.从

2010-07-24 19:18:00 2006

原创 MyEclipse Console 显示最大量输出

<br />第一步:进入Myelcipse---》Widows --》Preferences 窗口,在Type filter text 输入 Console进入如下图效果的界面;<br /><br />第二步:把上图的最大值处设置1000000,即就可以设置滚屏信息将显示最大量;<br /> <br /> <br />如果不同意的,请砸块砖

2010-07-05 12:11:00 3736 1

原创 Oracle 用户经常被锁原因

Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因Oracle 用户经常被锁原因

2010-06-03 14:48:00 4447 1

转载 ORACLE OLAP 函数

  最近这个东东用得特别多,总结了一下 。   语法: FUNCTION_NAME(,,...)     OVER()  OLAP函数语法四个部分:  1、function本身 用于对窗口中的数据进行操作;  2、partitioning clause 用于将结果集分区;  3、order by clause 用于对分区中的数据进行排序;  4、windowing clause 用于定义f

2010-05-14 09:42:00 827 1

转载 J2ME 发送短信

package com.wanchong.duanxin; import javax.microedition.io.Connector; import javax.microedition.lcdui.Alert; import javax.microedition.lcdui.AlertType; import javax.microedition.lcdui.Command; import

2010-05-13 08:46:00 805 1

转载 Myeclipse+Ajax 例子

一个MyEclipse里的AJAX例子2008-03-19 19:53本例将在页面的参数以Get和POST两种方式传递到服务器,并回显到页面; 本例共包括两个主要文件getAndPostExample.html和GetAndPostExample.java以及一个配置文件web.xml 建立文件的步骤: 1.在Eclipse新建一个web project-->ajax1 2.在ajax1里面新建一

2010-04-27 11:31:00 1825

原创 a different object with the same identifier value was already associated with the session

这个问题,我把对象赋值为NULL,也是很好用的.在我的系统中,更新好用了,可是插入不好用了.没改前,是插入好用,而更新不好用.本来是系统中的问题,可是,catch只是捕捉到,从但是,没有把log打印出来,找原因实在是难找.在高度数据库时,最好把异常捕捉中的信息打印出来.org.springframework.orm.hibernate.HibernateSystemException: a dif

2010-03-18 10:49:00 766

转载 C#定时执行某个程序(转)

using System;using System.Timers;namespace 定时器ConsoleApplication1{class Class1{    [STAThread]    static void Main(string[] args)   {    System.Timers.Timer aTimer = new System.Timers.Timer();     aTi

2009-08-06 09:16:00 1311

原创 C# Timer类

 <img id="Code_Closed_Image_163421" style="display: none;" onclick="function onclick(){this.style.display=none; Code_Closed_Text_163421.style.display=none; Code_Open_Image_163421.style.displ

2009-08-02 16:48:00 1028

转载 C#,csharp 中对ActiveX的验证操作

前些日子做一个Web项目,必须自己编写一个ActiveX控件。如今的ActiveX控件大多是使用VB/C++来开发的,而我对他们并不熟悉,因此考虑使用熟悉的C#编写ActiveX控件。     首先,建立一个WinForm控件项目HelloWorld,并拖入一个Label控件,文字设为HelloWorldUserControl1.cs内容如下: using System; using 

2009-04-30 09:14:00 1414

转载 csharp [Guid]

GUID(全局统一标识符)是指在一台机器上生成的数字,它保证对在同一时空中的所有机器都是唯一的。通常平台会提供生成GUID的API。生成算法很有意思,用到了以太网卡地址、纳秒级时间、芯片ID码和许多可能的数字。GUID的唯一缺陷在于生成的结果串会比较大。” 1.         一个GUID为一个128位的整数(16字节),在使用唯一标识符的情况下,你可以在所有计算机和网络之间使用这一整数。  2

2009-04-29 21:21:00 1268

转载 如何利用C#创建和调用DLL

一、写在前面 C# 语言是一种简单但功能强大的编程语言,用于编写企业应用程序。  C# 语言从C和 C++语言演化而来,在语句、表达式和运算符方面使用了许多 C++ 功能。 C# 语言在类型安全性、版本转换、事件和垃圾回收等方面进行了相当大的改进和创新。 C# 语言提供对常用 API 样式(如 .NET 框架、COM、自动化和 C 样式 API 等)的访问。      

2009-04-25 17:25:00 610

转载 HRESULT:0x80040228 异常解决

有群友又问到这个问题.如下:广州-苍鹰(448362145) 16:48:41我以上的方式连接总时出现异常我安装的是ArcGis9.2,我使用你们说的方式去连接,可是老出现错误提示。错误提示“异常来自 HRESULT:0x80040228 ”我的代码如下:public IWorkspace open_ArcSDE_Workspace(string server, string instance,

2009-04-24 17:34:00 4132

转载 ArcEngine连接数据库IBM DB2

程序代码: -------------------------------------------------------------------------------- OleDbConnection1.Open(); //打开数据库连接 OleDbDataAdapter1.Fill(dataSet1,"Address"); //将得来的数据填入dataSet DataGrid1.DataBi

2009-04-21 17:26:00 788

原创 ArcEngine连接数据库MySQL

程序代码: -------------------------------------------------------------------------------- using MySQLDriverCS; // 建立数据库连接 MySQLConnection DBConn; DBConn = new MySQLConnection(new MySQLConnectionString("l

2009-04-21 17:25:00 784

原创 ArcEngine连接数据库Access

C#连接连接Access 程序代码: ------------------------------------------------------------------------------- using System.Data; using System.Data.OleDb; ...... string strConnection="Provider=Microsoft.Jet.OleDb

2009-04-21 17:22:00 2013 5

原创 ArcEngine连接数据库SQL

程序代码: -------------------------------------------------------------------------------- using System.Data; using System.Data.SqlClient; ... string strConnection="user id=sa;password=;"; strConnection+=

2009-04-21 17:21:00 2123

转载 ArcEngine连接数据库ORACLE

程序代码: -------------------------------------------------------------------------------- using System.Data.OracleClient; using System.Data; //在窗体上添加一个按钮,叫Button1,双击Button1,输入以下代码 private void Button1_Cl

2009-04-21 17:20:00 2255 3

原创 JSF中标签的使用

http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  使用         /*上面的管控为上面的一个信息*/         ..此内部的信息均为上面红色字体所引用的User.

2009-04-13 17:46:00 671

转载 JSF运行时出现javax.servlet.jsp.JspException: Cannot find FacesContext处理方法

JSF运行时出现javax.servlet.jsp.JspException: Cannot find FacesContext处理方法许多JSF初学者,在运行JSF时,通常会遇到javax.servlet.jsp.JspException: Cannot find FacesContext 这个错误,但程序还正常运行.出现这种情况时,有三种解决方案:1.当你的首页文件是命名为

2009-04-13 16:13:00 2491 2

原创 RIA的概念

RIA:Rich Internet Application翻译成中文为富因特网应用程序(Macromedia中文网站翻译为Rich Internet应用程序)传统网络程序的开发是基于页面的、服务器端数据传递的模式,把网络程序的表示层建立于HTML页面之上,而HTML是适合于文本的,传统的基于页面的系统已经渐渐不能满足网络浏览者的更高的、全方位的体验要求了,这就是被Macromedia公司称之为的“

2009-04-03 21:38:00 1080 1

原创 AMF协议

最近由于工作需求,对amf做了一些了解,此前对flash相关的技术用的太少,以至于n年前提出来的amf协议都不曾过耳。。 - -#以下是关于amf的一篇文章。Flash Remoting的核心技术——AMFAMF是什么?它的优点中是什么?Flash Remoting为什么选择了使用AMF而放弃了SOAP与Flash 播放器通信呢?Flash5开始就可以以XML或者“变量/值

2009-04-03 14:46:00 10083

转载 Mysql中文乱码

Mysql中文乱码 网站程序是asp.net(c#),连接出现中文乱码,主机分配给用户一个帐号,可以使用phpMyAdmin操作Mysql, Mysql的信息如下, 运行:SHOW VARIABLES LIKE character_set_%; Variable_name Value character_set_client utf8 character_set_connection

2009-01-08 16:26:00 884

转载 超链接(下划线、颜色)、javascript复制文本框内容

"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http://www.w3.org/1999/xhtml">"Content-Type" content="text/html; charset=gb2312" />空间由中国

2008-12-22 13:29:00 1824

原创 浪之家

以下四个网址:http://www.loaferhome.com http://loaferhome.com http://www.loaferhome.cn http://loaferhome.cn 这四个域名,均为自己的网络域名,请大家有时间的过来浏览一下,本网站会定期的更新,上传;如果您有什么好的意见,就联系我,如果我的技术能功能达到的话,我会尽所能的满足

2008-12-19 21:59:00 509

原创 www.loaferhome.com

这个是我的网站,欢迎光临!  http://www.loaferhome.com http://loaferhome.com http://loaferhome.cn http://www.loaferhome.cn

2008-12-19 11:45:00 528

转载 struts标签库

被过滤广告 cT="1";nc="#996600";nBgc="#FFF7DE";nBorder="#F5E5A9";tc="#FFFFFF";tBgc="#7FC002";tBorder="#EEEEEE";tDigg="";tDugg="";defaultItemUrl="WEB_URL";defaultFeedUrl ="http://www.busfly.cn/csdn/rss.x

2008-12-17 13:57:00 556

转载 Struts2 处理一个form多个submit

Struts2 处理一个form多个submit在很多Web应用中,为了完成不同的工作,一个HTML form标签中可能有两个或多个submit按钮,如下面的代码所示:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->html

2008-12-15 12:01:00 459

转载 java 面试题

这个好像网上有很多版本的答案呢,但是内容都差不多,我也贴个: java面试题及答案 第一,谈谈final, finally, finalize的区别。 final?修饰符(关键字)如果一个类被声明为final,意味着它不 能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为

2008-12-04 06:21:00 480

原创 struts2 s:datetimepicker 无显示效果

"java" import="java.util.*" pageEncoding="GB18030"%>"s" uri="/struts-tags"%>"-//W3C//DTD HTML 4.01 Transitional//EN">     "stylesheet" type="text/css" href="/MyBBS/cssfile/frame.CSS"/>

2008-12-04 03:19:00 1488

转载 Struts2中文乱码问题解决的几种方法供参考

在使用struts2的 struts-tags的是碰到了乱码问题。   心里愤愤,觉得这个乱码问题都解决过几次了,怎么还会被撞上了?!   先把以往需要设置的点罗列一下:   1. JSP 文件头         2. struts.properties中的编码设定   struts.locale = UTF-8         struts.i18n.encoding=utf-8  3. Res

2008-12-03 15:15:00 10244 1

转载 在Struts2中最简单的验证

在Struts2中最简单的验证数据的方法是使用validate。我们从ActionSupport类的源代码中可以看到,ActionSupport类实现了一个Validateable接口。这个接口只有一个validate方法。如果Action类实现了这个接口,Struts2在调用execute方法之前首先会调用这个方法,我们可以在validate方法中验证,如果发生错误,可以根据错误的level选择

2008-12-03 10:56:00 801

转载 [JAVA100例]048、使用JavaMail接收邮件

import Javax.mail.*;  import javax.mail.internet.*;  import java.util.*;  import java.io.*;  /**   * Title: 使用JavaMail接收邮件   * Description: 实例JavaMail包接收邮件,本实例没有实现接收邮件的附件。   * Copyright: Copyright (c)

2008-12-02 07:28:00 550

转载 Struts2标签使用

相关文章:   strust2实践总结 『出错』ww中的<ww:select/>标签问题 带下拉框的数据编辑页面 推荐圈子: JSF 更多相关推荐 new Draggable("related_topics"); Struts2标签使用 (1):  ----  文本输入框      使用: (2):   --

2008-11-28 11:27:00 701

原创 人生就是一顿自助餐

曾读过一篇文章:一位老人从东欧来到美国,在曼哈顿的一间餐馆想找点东西吃,他坐在空无一物的餐桌旁,等着有人拿餐盘来为他点菜。但是没有人来,他等了很久,直到他看到有一个女人端着满满的一盘食物过来坐在他的对面。   老人问女人怎么没有侍者,女人告诉他这是一家自助餐馆。果然,老人看见有许多食物陈列在台子上排成长长的一行。“从一头开始你挨个地拣你喜欢吃的菜,等你拣完到另一头,他们会告诉你该付多少钱。”女人告

2008-11-27 12:44:00 491 2

原创 爱的极致是宽容

女人有了外遇,要和丈夫离婚。丈夫不同意,女人便整天吵吵闹闹。无奈之下,丈夫只好答应妻子的要求。不过,离婚前,他想见见妻子的男朋友。妻子满口应承。第二天一大早,便把一个高大英俊的中年人带回家来。        女人本以为丈夫一见到自己的男朋友必定气势汹汹的讨伐。可丈夫没有,他很有风度的和男人握了握手。之后,他说他很想和她的男朋友交谈一下,希望妻子回避一会儿。女人遵从了丈夫的建议。站在门外

2008-11-27 12:38:00 656 7

转载 一碗饭菜

这天傍晚下班,我走进沿街的一间报刊零售小屋里看报,经营报刊的是一对年青夫妻,男的是一家企业的下岗职工。    男的正伏在一张小桌子上吃着饭,双手端着一只很大的瓷碗,他从碗的一边吃,饭头上一边堆着菜,我瞅了瞅,是豆腐烧肉。    我在翻看着架子上的报刊杂志,不一会儿,男的站起身轻轻地将筷子平稳地放在碗口上,碗里留下一半的饭,两块烧肉还在豆腐上架着。他对老婆说:“我吃好了,你来吃吧。”他老婆拿起筷子,

2008-11-27 12:35:00 848 3

JAVA大学基础教程_第六版(中文版)

JAVA大学基础教程_第六版(中文版)

2013-12-04

OpenSUSE 入门教程

指教关于 OpenSUSE的简单使用,让初学都能够快速入手,学习 OpenSUSE基本使用。

2013-12-04

JAVA大学教程6英文版

Copyright iv Deitel® Books, Cyber Classrooms, Complete Training Courses and Web-Based Training Courses published by Prentice Hall ii Preface xxv Features in Java How to Program, 6/e xxvi Teaching Approach xxix Tour of the Book xxxiii A Tour of the Optional Case Study on Object-Oriented Design with the UML xliii A Tour of the Optional GUI and Graphics Case Study xlv Software Included with Java How to Program, 6/e xlvi Teaching Resources for Java How to Program, 6/e xlvii Java in the Lab xlvii OneKey, CourseCompassSM, WebCT™ and by Blackboard™ xlix Java 2 Multimedia Cyber Classroom, 6/e Through OneKey l PearsonChoices l Computer Science AP Courses li Deitel® Buzz Online Free E-mail Newsletter li Acknowledgments li About the Authors lv About Deitel & Associates, Inc. lv Before You Begin lvii Software and Other Resources on the CD That Accompanies Java How to Program, Sixth Edition lvii Hardware and Software Requirements to Run JDK 5.0 lvii Copying and Organizing Files lviii Copying the Book Examples from the CD lviii Changing the Read-Only Property of Files lviii Installing the J2SE Development Kit (JDK) lxii Setting the PATH Variable lxiv Chapter 1. Introduction to Computers, the Internet and the World Wide Web 1 Section 1.1. Introduction 2 Section 1.2. What Is a Computer? 4 Section 1.3. Computer Organization 4 Section 1.4. Early Operating Systems 5 Section 1.5. Personal, Distributed and Client/Server Computing 6 Section 1.6. The Internet and the World Wide Web 6 Section 1.7. Machine Languages, Assembly Languages and High-Level Languages 7 Section 1.8. History of C and C++ 8 Section 1.9. History of Java 9 Section 1.10. Java Class Libraries 9 Section 1.11. FORTRAN, COBOL, Pascal and Ada 11 Section 1.12. BASIC, Visual Basic, Visual C++, C# and .NET 11 Section 1.13. Typical Java Development Environment 12 Section 1.14. Notes about Java and Java How to Program, Sixth Edition 15 Section 1.15. Test-Driving a Java Application 16 Section 1.16. Software Engineering Case Study: Introduction to Object Technology and the UML (Required) 21 Section 1.17. Wrap-Up 26 Section 1.18. Web Resources 26 Summary 28 Terminology 30 Self-Review Exercises 32 Answers to Self-Review Exercises 32 Exercises 33 Chapter 2. Introduction to Java Applications 35 Section 2.1. Introduction 36 Section 2.2. First Program in Java: Printing a Line of Text 36 Section 2.3. Modifying Our First Java Program 43 Section 2.4. Displaying Text with printf 45 Section 2.5. Another Java Application: Adding Integers 47 Section 2.6. Memory Concepts 51 Section 2.7. Arithmetic 52 Section 2.8. Decision Making: Equality and Relational Operators 56 Section 2.9. (Optional) Software Engineering Case Study: Examining the Requirements Document 60 Section 2.10. Wrap-Up 69 Summary 70 Terminology 73 Self-Review Exercises 74 Answers to Self-Review Exercises 75 Exercises 77 Chapter 3. Introduction to Classes and Objects 81 Section 3.1. Introduction 82 Section 3.2. Classes, Objects, Methods and Instance Variables 82 Section 3.3. Declaring a Class with a Method and Instantiating an Object of a Class 84 Section 3.4. Declaring a Method with a Parameter 88 Section 3.5. Instance Variables, set Methods and get Methods 91 Section 3.6. Primitive Types vs. Reference Types 96 Section 3.7. Initializing Objects with Constructors 97 Section 3.8. Floating-Point Numbers and Type double 100 Section 3.9. (Optional) GUI and Graphics Case Study: Using Dialog Boxes 104 Section 3.10. (Optional) Software Engineering Case Study: Identifying the Classes in a Requirements Document 107 Section 3.11. Wrap-Up 114 Summary 115 Terminology 119 Self-Review Exercises 119 Answers to Self-Review Exercises 120 Exercises 121 Chapter 4. Control Statements: Part I 123 Section 4.1. Introduction 124 Section 4.2. Algorithms 124 Section 4.3. Pseudocode 125 Section 4.4. Control Structures 125 Section 4.5. if Single-Selection Statement 128 Section 4.6. if...else Double-Selection Statement 129 Section 4.7. while Repetition Statement 134 Section 4.8. Formulating Algorithms: Counter-Controlled Repetition 135 Section 4.9. Formulating Algorithms: Sentinel-Controlled Repetition 140 Section 4.10. Formulating Algorithms: Nested Control Statements 148 Section 4.11. Compound Assignment Operators 153 Section 4.12. Increment and Decrement Operators 154 Section 4.13. Primitive Types 156 Section 4.14. (Optional) GUI and Graphics Case Study: Creating Simple Drawings 157 Section 4.15. (Optional) Software Engineering Case Study: Identifying Class Attributes 162 Section 4.16. Wrap-Up 166 Summary 167 Terminology 168 Self-Review Exercises 169 Answers to Self-Review Exercises 171 Exercises 172 Chapter 5. Control Statements: Part 2 179 Section 5.1. Introduction 180 Section 5.2. Essentials of Counter-Controlled Repetition 180 Section 5.3. for Repetition Statement 182 Section 5.4. Examples Using the for Statement 186 Section 5.5. do...while Repetition Statement 191 Section 5.6. switch Multiple-Selection Statement 192 Section 5.7. break and continue Statements 200 Section 5.8. Logical Operators 202 Section 5.9. Structured Programming Summary 208 Section 5.10. (Optional) GUI and Graphics Case Study: Drawing Rectangles and Ovals 213 Section 5.11. (Optional) Software Engineering Case Study: Identifying Objects' States and Activities 216 Section 5.12. Wrap-Up 220 Summary 221 Terminology 223 Self-Review Exercises 224 Answers to Self-Review Exercises 225 Exercises 226 Chapter 6. Methods: A Deeper Look 230 Section 6.1. Introduction 231 Section 6.2. Program Modules in Java 232 Section 6.3. static Methods, static Fields and Class Math 233 Section 6.4. Declaring Methods with Multiple Parameters 236 Section 6.5. Notes on Declaring and Using Methods 240 Section 6.6. Method Call Stack and Activation Records 241 Section 6.7. Argument Promotion and Casting 241 Section 6.8. Java API Packages 243 Section 6.9. Case Study: Random-Number Generation 245 Section 6.10. Case Study: A Game of Chance (Introducing Enumerations) 250 Section 6.11. Scope of Declarations 255 Section 6.12. Method Overloading 257 Section 6.13. (Optional) GUI and Graphics Case Study: Colors and Filled Shapes 261 Section 6.14. (Optional) Software Engineering Case Study: Identifying Class Operations 263 Section 6.15. Wrap-Up 271 Summary 271 Terminology 274 Self-Review Exercises 275 Answers to Self-Review Exercises 277 Exercises 279 Chapter 7. Arrays 285 Section 7.1. Introduction 286 Section 7.2. Arrays 286 Section 7.3. Declaring and Creating Arrays 288 Section 7.4. Examples Using Arrays 289 Section 7.5. Case Study: Card Shuffling and Dealing Simulation 298 Section 7.6. Enhanced for Statement 301 Section 7.7. Passing Arrays to Methods 303 Section 7.8. Case Study: Class GradeBook Using an Array to Store Grades 307 Section 7.9. Multidimensional Arrays 311 Section 7.10. Case Study: Class GradeBook Using a Two-Dimensional Array 316 Section 7.11. Variable-Length Argument Lists 322 Section 7.12. Using Command-Line Arguments 323 Section 7.13. (Optional) GUI and Graphics Case Study: Drawing Arcs 325 Section 7.14. (Optional) Software Engineering Case Study: Collaboration Among Objects 328 Section 7.15. Wrap-Up 336 Summary 337 Terminology 339 Self-Review Exercises 339 Answers to Self-Review Exercises 340 Exercises 341 Special Section: Building Your Own Computer 350 Chapter 8. Classes and Objects: A Deeper Look 357 Section 8.1. Introduction 358 Section 8.2. Time Class Case Study 359 Section 8.3. Controlling Access to Members 362 Section 8.4. Referring to the Current Object's Members with the this Reference 363 Section 8.5. Time Class Case Study: Overloaded Constructors 366 Section 8.6. Default and No-Argument Constructors 371 Section 8.7. Notes on Set and Get Methods 372 Section 8.8. Composition 373 Section 8.9. Enumerations 376 Section 8.10. Garbage Collection and Method finalize 379 Section 8.11. static Class Members 380 Section 8.12. static Import 385 Section 8.13. final Instance Variables 386 Section 8.14. Software Reusability 388 Section 8.15. Data Abstraction and Encapsulation 389 Section 8.16. Time Class Case Study: Creating Packages 390 Section 8.17. Package Access 396 Section 8.18. (Optional) GUI and Graphics Case Study: Using Objects with Graphics 396 Section 8.19. (Optional) Software Engineering Case Study: Starting to Program the Classes of the ATM System 401 Section 8.20. Wrap-Up 406 Summary 407 Terminology 410 Self-Review Exercises 410 Answers to Self-Review Exercises 411 Exercises 411 Chapter 9. Object-Oriented Programming: Inheritance 415 Section 9.1. Introduction 416 Section 9.2. Superclasses and Subclasses 417 Section 9.3. protected Members 419 Section 9.4. Relationship between Superclasses and Subclasses 420 Section 9.5. Constructors in Subclasses 444 Section 9.6. Software Engineering with Inheritance 450 Section 9.7. Object Class 451 Section 9.8. (Optional) GUI and Graphics Case Study: Displaying Text and Images Using Labels 453 Section 9.9. Wrap-Up 455 Summary 455 Terminology 456 Self-Review Exercises 457 Answers to Self-Review Exercises 457 Exercises 458 Chapter 10. Object-Oriented Programming: Polymorphism 459 Section 10.1. Introduction 460 Section 10.2. Polymorphism Examples 462 Section 10.3. Demonstrating Polymorphic Behavior 463 Section 10.4. Abstract Classes and Methods 466 Section 10.5. Case Study: Payroll System Using Polymorphism 468 Section 10.6. final Methods and Classes 483 Section 10.7. Case Study: Creating and Using Interfaces 484 Section 10.8. (Optional) GUI and Graphics Case Study: Drawing with Polymorphism 496 Section 10.9. (Optional) Software Engineering Case Study: Incorporating Inheritance into the ATM System 498 Section 10.10. Wrap-Up 506 Summary 506 Terminology 507 Self-Review Exercises 507 Answers to Self-Review Exercises 508 Exercises 508 Chapter 11. GUI Components: Part 1 510 Section 11.1. Introduction 511 Section 11.2. Simple GUI-Based Input/Output with JOptionPane 512 Section 11.3. Overview of Swing Components 515 Section 11.4. Displaying Text and Images in a Window 518 Section 11.5. Text Fields and an Introduction to Event Handling with Nested Classes 522 Section 11.6. Common GUI Event Types and Listener Interfaces 529 Section 11.7. How Event Handling Works 530 Section 11.8. JButton 533 Section 11.9. Buttons that Maintain State 536 Section 11.10. JComboBox and Using an Anonymous Inner Class for Event Handling 543 Section 11.11. JList 546 Section 11.12. Multiple-Selection Lists 549 Section 11.13. Mouse Event Handling 551 Section 11.14. Adapter Classes 556 Section 11.15. JPanel Subclass for Drawing with the Mouse 559 Section 11.16. Key-Event Handling 563 Section 11.17. Layout Managers 567 Section 11.18. Using Panels to Manage More Complex Layouts 576 Section 11.19. JTextArea 578 Section 11.20. Wrap-Up 581 Summary 581 Terminology 587 Self-Review Exercises 589 Answers to Self-Review Exercises 590 Exercises 590 Chapter 12. Graphics and Java 2D™ 595 Section 12.1. Introduction 596 Section 12.2. Graphics Contexts and Graphics Objects 598 Section 12.3. Color Control 599 Section 12.4. Font Control 606 Section 12.5. Drawing Lines, Rectangles and Ovals 611 Section 12.6. Drawing Arcs 616 Section 12.7. Drawing Polygons and Polylines 618 Section 12.8. Java 2D API 622 Section 12.9. Wrap-Up 629 Summary 629 Terminology 631 Self-Review Exercises 632 Answers to Self-Review Exercises 633 Exercises 633 Chapter 13. Exception Handling 638 Section 13.1. Introduction 639 Section 13.2. Exception-Handling Overview 640 Section 13.3. Example: Divide By Zero Without Exception Handling 641 Section 13.4. Example: Handling ArithmeticExceptions and InputMismatchExceptions 643 Section 13.5. When to Use Exception Handling 648 Section 13.6. Java Exception Hierarchy 649 Section 13.7. finally block 652 Section 13.8. Stack Unwinding 656 Section 13.9. printStackTrace, getStackTrace and getMessage 658 Section 13.10. Chained Exceptions 660 Section 13.11. Declaring New Exception Types 662 Section 13.12. Preconditions and Postconditions 663 Section 13.13. Assertions 664 Section 13.14. Wrap-Up 666 Summary 666 Terminology 668 Self-Review Exercises 669 Answers to Self-Review Exercises 670 Exercises 670 Chapter 14. Files and Streams 672 Section 14.1. Introduction 673 Section 14.2. Data Hierarchy 674 Section 14.3. Files and Streams 675 Section 14.4. Class File 678 Section 14.5. Sequential-Access Text Files 682 Section 14.6. Object Serialization 697 Section 14.7. Random-Access Files 706 Section 14.8. Additional java.io Classes 727 Section 14.9. Opening Files with JFileChooser 729 Section 14.10. Wrap-Up 733 Summary 733 Terminology 735 Self-Review Exercises 737 Answers to Self-Review Exercises 738 Exercises 739 Chapter 15. Recursion 744 Section 15.1. Introduction 745 Section 15.2. Recursion Concepts 745 Section 15.3. Example Using Recursion: Factorials 747 Section 15.4. Example Using Recursion: Fibonacci Series 750 Section 15.5. Recursion and the Method Call Stack 753 Section 15.6. Recursion vs. Iteration 754 Section 15.7. String Permutations 756 Section 15.8. Towers of Hanoi 761 Section 15.9. Fractals 763 Section 15.10. Recursive Backtracking 774 Section 15.11. Wrap-Up 775 Section 15.12. Internet and Web Resources 775 Summary 776 Terminology 778 Self-Review Exercises 779 Answers to Self-Review Exercises 780 Exercises 780 Chapter 16. Searching and Sorting 785 Section 16.1. Introduction 786 Section 16.2. Searching Algorithms 786 Section 16.3. Sorting Algorithms 796 Section 16.4. Invariants 810 Section 16.5. Wrap-up 812 Summary 812 Terminology 814 Self-Review Exercises 814 Answers to Self-Review Exercises 814 Exercises 814 Chapter 17. Data Structures 817 Section 17.1. Introduction 818 Section 17.2. Type-Wrapper Classes for Primitive Types 819 Section 17.3. Autoboxing and Auto-Unboxing 819 Section 17.4. Self-Referential Classes 820 Section 17.5. Dynamic Memory Allocation 821 Section 17.6. Linked Lists 821 Section 17.7. Stacks 832 Section 17.8. Queues 836 Section 17.9. Trees 838 Section 17.10. Wrap-Up 845 Summary 846 Terminology 847 Self-Review Exercises 848 Answers to Self-Review Exercises 849 Exercises 850 Special Section: Building Your Own Compiler 855 Chapter 18. Generics 869 Section 18.1. Introduction 870 Section 18.2. Motivation for Generic Methods 871 Section 18.3. Generic Methods: Implementation and Compile-Time Translation 873 Section 18.4. Additional Compile-Time Translation Issues: Methods That Use a Type Parameter as the Return Type 876 Section 18.5. Overloading Generic Methods 879 Section 18.6. Generic Classes 879 Section 18.7. Raw Types 890 Section 18.8. Wildcards in Methods That Accept Type Parameters 891 Section 18.9. Generics and Inheritance: Notes 898 Section 18.10. Wrap-Up 898 Section 18.11. Internet and Web Resources 899 Summary 899 Terminology 901 Self-Review Exercises 901 Answers to Self-Review Exercises 902 Exercises 902 Chapter 19. Collections 904 Section 19.1. Introduction 905 Section 19.2. Collections Overview 906 Section 19.3. Class Arrays 907 Section 19.4. Interface Collection and Class Collections 910 Section 19.5. Lists 911 Section 19.6. Collections Algorithms 922 Section 19.7. Stack Class of Package java.util 935 Section 19.8. Class PriorityQueue and Interface Queue 938 Section 19.9. Sets 939 Section 19.10. Maps 942 Section 19.11. Properties Class 946 Section 19.12. Synchronized Collections 949 Section 19.13. Unmodifiable Collections 950 Section 19.14. Abstract Implementations 950 Section 19.15. Wrap-Up 951 Summary 951 Terminology 954 Self-Review Exercises 955 Answers to Self-Review Exercises 955 Exercises 956 Chapter 20. Introduction to Java Applets 958 Section 20.1. Introduction 959 Section 20.2. Sample Applets Provided with the JDK 959 Section 20.3. Simple Java Applet: Drawing a String 964 Section 20.4. Applet Life-Cycle Methods 968 Section 20.5. Initializing an Instance Variable with Method init 970 Section 20.6. Sandbox Security Model 972 Section 20.7. Internet and Web Resources 972 Section 20.8. Wrap-Up 973 Summary 973 Terminology 975 Self-Review Exercises 975 Answers to Self-Review Exercises 975 Exercises 975 Chapter 21. Multimedia: Applets and Applications 977 Section 21.1. Introduction 978 Section 21.2. Loading, Displaying and Scaling Images 979 Section 21.3. Animating a Series of Images 982 Section 21.4. Image Maps 987 Section 21.5. Loading and Playing Audio Clips 987 Section 21.6. Playing Video and Other Media with Java Media Framework 993 Section 21.7. Wrap-Up 997 Section 21.8. Internet and Web Resources 998 Summary 999 Terminology 1000 Self-Review Exercises 1001 Answers to Self-Review Exercises 1001 Exercises 1001 Special Section: Challenging Multimedia Projects 1002 Chapter 22. GUI Components: Part 2 1005 Section 22.1. Introduction 1006 Section 22.2. JSlider 1006 Section 22.3. Windows: Additional Notes 1010 Section 22.4. Using Menus with Frames 1011 Section 22.5. JPopupMenu 1019 Section 22.6. Pluggable Look-and-Feel 1022 Section 22.7. JDesktopPane and JInternalFrame 1026 Section 22.8. JTabbedPane 1030 Section 22.9. Layout Managers: BoxLayout and GridBagLayout 1032 Section 22.10. Wrap-Up 1046 Summary 1046 Terminology 1048 Self-Review Exercises 1049 Answers to Self-Review Exercises 1050 Exercises 1050 Chapter 23. Multithreading 1052 Section 23.1. Introduction 1053 Section 23.2. Thread States: Life Cycle of a Thread 1055 Section 23.3. Thread Priorities and Thread Scheduling 1056 Section 23.4. Creating and Executing Threads 1058 Section 23.5. Thread Synchronization 1062 Section 23.6. Producer/Consumer Relationship without Synchronization 1064 Section 23.7. Producer/Consumer Relationship with Synchronization 1071 Section 23.8. Producer/Consumer Relationship: Circular Buffer 1076 Section 23.9. Producer/Consumer Relationship: ArrayBlockingQueue 1084 Section 23.10. Multithreading with GUI 1087 Section 23.11. Other Classes and Interfaces in java.util.concurrent 1093 Section 23.12. Monitors and Monitor Locks 1093 Section 23.13. Wrap-Up 1100 Summary 1100 Terminology 1102 Self-Review Exercises 1103 Answers to Self-Review Exercises 1104 Exercises 1104 Chapter 24. Networking 1106 Section 24.1. Introduction 1107 Section 24.2. Manipulating URLs 1108 Section 24.3. Reading a File on a Web Server 1114 Section 24.4. Establishing a Simple Server Using Stream Sockets 1117 Section 24.5. Establishing a Simple Client Using Stream Sockets 1119 Section 24.6. Client/Server Interaction with Stream Socket Connections 1119 Section 24.7. Connectionless Client/Server Interaction with Datagrams 1132 Section 24.8. Client/Server Tic-Tac-Toe Using a Multithreaded Server 1139 Section 24.9. Security and the Network 1154 Section 24.10. Case Study: DeitelMessenger Server and Client 1155 Section 24.11. Wrap-Up 1181 Summary 1181 Terminology 1183 Self-Review Exercises 1184 Answers to Self-Review Exercises 1185 Exercises 1185 Chapter 25. Accessing Databases with JDBC 1189 Section 25.1. Introduction 1190 Section 25.2. Relational Databases 1191 Section 25.3. Relational Database Overview: The books Database 1192 Section 25.4. SQL 1196 Section 25.5. Instructions to install MySQL and MySQL Connector/J 1206 Section 25.6. Instructions on Setting MySQL User Account 1206 Section 25.7. Creating Database books in MySQL 1207 Section 25.8. Manipulating Databases with JDBC 1207 Section 25.9. Stored Procedures 1224 Section 25.10. RowSet Interface 1224 Section 25.11. Wrap-Up 1227 Section 25.12. Internet and Web Resources 1227 Recommended Readings 1228 Summary 1229 Terminology 1232 Self-Review Exercises 1234 Answers to Self-Review Exercises 1234 Exercises 1234 Chapter 26. Servlets 1236 Section 26.1. Introduction 1237 Section 26.2. Servlet Overview and Architecture 1239 Section 26.3. Setting Up the Apache Tomcat Server 1243 Section 26.4. Handling HTTP get Requests 1246 Section 26.5. Handling HTTP get Requests Containing Data 1255 Section 26.6. Handling HTTP post Requests 1258 Section 26.7. Redirecting Requests to Other Resources 1261 Section 26.8. Multitier Applications: Using JDBC from a Servlet 1265 Section 26.9. Welcome Files 1270 Section 26.10. Wrap-Up 1274 Section 26.11. Internet and Web Resources 1274 Summary 1275 Terminology 1277 Self-Review Exercises 1277 Answers to Self-Review Exercises 1278 Exercises 1278 Chapter 27. JavaServer Pages (JSP) 1280 Section 27.1. Introduction 1281 Section 27.2. JavaServer Pages Overview 1282 Section 27.3. First JSP Example 1283 Section 27.4. Implicit Objects 1285 Section 27.5. Scripting 1286 Section 27.6. Standard Actions 1291 Section 27.7. Directives 1305 Section 27.8. Case Study: Guest Book 1309 Section 27.9. Wrap-Up 1321 Section 27.10. Internet and Web Resources 1321 Summary 1321 Terminology 1323 Self-Review Exercises 1324 Answers to Self-Review Exercises 1325 Exercises 1325 Chapter 28. Formatted Output 1326 Section 28.1. Introduction 1327 Section 28.2. Streams 1327 Section 28.3. Formatting Output with printf 1328 Section 28.4. Printing Integers 1328 Section 28.5. Printing Floating-Point Numbers 1329 Section 28.6. Printing Strings and Characters 1330 Section 28.7. Printing Dates and Times 1331 Section 28.8. Other Conversion Characters 1335 Section 28.9. Printing with Field Widths and Precisions 1335 Section 28.10. Using Flags in the printf Format String 1337 Section 28.11. Printing with Argument Indices 1342 Section 28.12. Printing Literals and Escape Sequences 1342 Section 28.13. Formatting Output with Class Formatter 1342 Section 28.14. Wrap-Up 1344 Summary 1344 Terminology 1346 Self-Review Exercises 1346 Answers to Self-Review Exercises 1347 Exercises 1348 Chapter 29. Strings, Characters and Regular Expressions 1350 Section 29.1. Introduction 1351 Section 29.2. Fundamentals of Characters and Strings 1352 Section 29.3. Class String 1352 Section 29.4. Class StringBuffer 1364 Section 29.5. Class Character 1372 Section 29.6. Class StringTokenizer 1376 Section 29.7. Regular Expressions, Class Pattern and Class Matcher 1378 Section 29.8. Wrap-Up 1387 Summary 1387 Terminology 1391 Self-Review Exercises 1391 Answers to Self-Review Exercises 1392 Exercises 1392 Special Section: Advanced String-Manipulation Exercises 1393 Special Section: Challenging String-Manipulation Projects 1396 Appendix A. Operator Precedence Chart 1398 Section A.1. Operator Precedence 1398 Appendix B. ASCII Character Set 1400 Appendix C. Keywords and Reserved Words 1401 Appendix D. Primitive Types 1402 Appendix E. (On CD) Number Systems 1403 Appendix F. (On CD) Unicode®

2013-04-11

RAC简单介绍文档,对RAC的入门

RAC简单介绍,就是说明一些关于RAC的概念之类的东西!并且提供了网址进行技术支持

2010-08-05

RAC HP集群安装操作手删

该文档简单介绍HP机上达到RAC的效果案例,简单介绍,希望能给你帮忙

2010-08-05

J2ME 发短信 源码

这是一个简短的J2ME发送短信的例子,开发环境为Myeclipse IDE下进行,版本6.5,进行导入源码包时,请先确认EclipseME 插件是否已经安装成功!

2010-05-13

BIRT学习资料.rar

此文档包括部分项目例子解释,及BIRT的部署设置文档,还有其帮忙文档!

2010-03-25

ajax4jsf.zip

本文档是一jar档的集合,适用于对AJAX4JSF的开始所需,因在网上下载AJAX4JSF时,经常无法正常进入!所以在此发布啦!此包中包括了AJAX4JSF开发所需的包,请下载啦

2009-04-13

JSF项目开始所需要的JAR包

JSF项目开始所需要的JAR包,已经包括全部的.jar包啦

2009-04-07

我的flex第一步.doc

我的flex第一步.doc这个文档很不错呀,适用初学者,步骤也很全啦!

2009-04-03

javamail-1_4_1.zip,JavaBeans Activation Framework 1.1.1

javaMail功能全部的包文档,这是我压缩的,此中包括javamail-1_4_1.zip,JavaBeans Activation Framework 1.1.1.zip

2008-11-20

Dom4j使用简介.pdf

Dom4j使用简介.pdf,这个文档初步介绍了dom4j的作用,如果是新手,这个文档值得一看的!

2008-11-13

JSP数据库编程指南.pdf

JSP数据库编程指南.pdf ,这文档对初次接手jsp 与数据库连接的同仁,有很大的帮助呀!

2008-11-13

图解JSP环境安装配置.chm

图解JSP环境安装配置.chm,这个文档可供新手看呀,如果是老手的话,不用进来啦!

2008-11-13

Linux安装图解全过程(Linux+Text文本界面安装)

Linux安装图解全过程(Linux+Text文本界面安装),图片相当完整的,请大家参考

2008-11-13

查询本机端口工具curr

这个工具为查询机的端口信息,很好用,这个是转贴别人的,如果想感谢,就放原贴之人呀!

2008-11-05

linux下find命令大全

此文档介绍了linux下find 的运用,及实现过程,及工作原理,并且详细的解说了操作方式!

2008-11-04

linux中vi命令的使用

此文档介绍了vi在linux各事项,可以很快熟悉linux下vi使用的技术;

2008-11-04

linux基础知识学习

这个文档是介绍linux的基本操作,及各步骤各代表的意思,及实现效果!

2008-11-04

linux4安装全程解说

这个文档包括了安装linux时的各个步骤,及每步要掌握的知道,及功能实现的解说!

2008-11-04

linux (redhat)命令大全

这个文档包括了其的linux命令的详细解说部分,及实现后的结果与过程!

2008-11-04

对oc4j 的配置文档

这个文档是对oc4j配置的全部过程,如果细看,肯定可以搞定oc4j的搭建的!

2008-11-04

telnet-server.rpm

这是redhat as4中的所用到的telnet server的安装文档,这是快速安装的rpm格式的,在网上找了,除了在linux官方,没有其它网站提供这个功能安装的rpm格式的文档!

2008-10-20

judit工具介绍在eclipse 使用

这个文档是对judit工具进行操作,这个功能可以实现!

2008-09-12

简单上传代码

这是用javawebstuido开发出来的,最简单的例子,架构是用struts来做的

2008-08-07

javaservlet学习

是有关java servlet的学习jsp 篇章

2008-05-20

javaservlet学习

是有关java servlet的学习jsp 篇章

2008-05-20

java学习资料

是有关java 初基学习资料

2008-05-20

jbossajax

此文档为jboss ajax编辑代码

2008-05-20

Ajax高级程序设计

这是一本基本教程的书籍;

2008-04-02

ojdbc14.jar

这个工具为oracle所用的JDBC,是适合oracle9i,oracle10G用

2008-03-26

log4j.jar

此为log4j 所用到的包文件,请确定;

2008-03-19

SQL JDBC

为连接SQL 2000数据所用的JDBC

2008-03-19

mysql_connection_java.jar

此文档是用于hibernate开发mysql数据库时——JDBC包;绝对好用;

2008-03-10

AJAX 3.2组件

很不错的一个组件库,适合于jb去编程的,

2008-02-26

hibernate-3.22

hibernate-3.2\lib\antlr-2.7.6.jar<br> hibernate-3.2\lib\asm.jar<br> hibernate-3.2\lib\cglib-2.1.3.jar<br> hibernate-3.2\lib\commons-collections-2.1.1.jar<br> hibernate-3.2\lib\commons-logging-1.0.4.jar<br> hibernate-3.2\lib\dom4j-1.6.1.jar<br> hibernate-3.2\lib\ehcache-1.1.jar<br> hibernate-3.2\hibernate3.jar<br> hibernate-3.2\lib\log4j-1.2.13.jar

2008-02-19

hibernate-3.2

hibernate-3.2\lib\antlr-2.7.6.jar<br> hibernate-3.2\lib\asm.jar<br> hibernate-3.2\lib\cglib-2.1.3.jar<br> hibernate-3.2\lib\commons-collections-2.1.1.jar<br> hibernate-3.2\lib\commons-logging-1.0.4.jar<br> hibernate-3.2\lib\dom4j-1.6.1.jar<br> hibernate-3.2\lib\ehcache-1.1.jar<br> hibernate-3.2\hibernate3.jar<br> hibernate-3.2\lib\log4j-1.2.13.jar

2008-02-19

hibernate-3.2

此资源包括hibernate-3.2\lib\antlr-2.7.6.jar<br> hibernate-3.2\lib\asm.jar<br> hibernate-3.2\lib\cglib-2.1.3.jar<br> hibernate-3.2\lib\commons-collections-2.1.1.jar<br> hibernate-3.2\lib\commons-logging-1.0.4.jar<br> hibernate-3.2\lib\dom4j-1.6.1.jar<br> hibernate-3.2\lib\ehcache-1.1.jar<br> hibernate-3.2\hibernate3.jar<br> hibernate-3.2\lib\log4j-1.2.13.jar

2008-02-19

XP系统环境下量度抓图工具

很好用呀,不防试试!很好用呀,不防试试!很好用呀,不防试试!很好用呀,不防试试!

2008-02-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除