John Lewis教授是美国知名的编程语言畅销教材的作者,撰写了多部有关Java编程导论、Java软件解决方案、Java数据结构以及计算机应用的相关教材。Lewis教授从美国弗吉尼亚大学获得了博士学位并一直在该校任教。John Lewis教授是美国知名的编程语言畅销教材的作者,撰写了多部有关Java编程导论、Java软件解决方案、Java数据结构以及计算机应用的相关教材。Lewis教授从美国弗吉尼亚大学获得了博士学位并一直在该校任教。
目錄:
目?录Chapter 1?Introduction?计算机系统概述11.1?Computer Processing?计算机处理过程21.2?Hardware Components?硬件组件101.3?Networks?网络191.4?The Java Programming Language?Java编程语言261.5?Program Development?程序开发351.6?Object-Oriented Programming?面向对象编程43Chapter 2?Data and Expressions?数据与表达式552.1?Character Strings?字符串562.2?Variables and Assignment?变量与赋值632.3?Primitive Data Types?基本数据类型692.4?Expressions?表达式732.5?Data Conversion?数据类型转换 812.6?Interactive Programs?交互式程序85Chapter 3?Using Classes and Objects?类与对象993.1?Creating Objects?创建对象1003.2?The String Class?String类1043.3?Packages?包1083.4?The Random Class?Random类1123.5?The Math Class?Math类1153.6?Formatting Output?格式化输出1183.7?Enumerated Types?枚举类型1243.8?Wrapper Classes?包装器类1273.9?Introduction to JavaFX?JavaFX简介1293.10?Basic Shapes?基本形状1333.11?Representing Colors?颜色呈现140Chapter 4?Writing Classes?编写类 1474.1?Classes and Objects Revisited?类与对象的核心概念1484.2?Anatomy of a Class?类的分析1504.3?Encapsulation?封装1574.4?Anatomy of a Method?方法的分析1604.5?Constructors Revisited?再论构造方法1694.6?Arcs?弧1704.7?Images?图形1734.8?Graphical User Interfaces?图形用户界面1764.9?Text Fields?文本框180Chapter 5?Conditionals and Loops?条件判断与循环1915.1?Boolean Expressions?布尔表达式1925.2?The if Statement?if语句1975.3?Comparing Data?数据比较2105.4?The while Statement?while语句2145.5?Iterators?迭代器2255.6?The ArrayList Class?ArrayList类2295.7?Determining Event Sources?确定事件源2325.8?Managing Fonts?管理字体2345.9?Check Boxes?复选框2375.10?Radio Buttons?单选钮241Chapter 6?More Conditionals and Loops?其他条件判断与循环2556.1?The switch Statement?switch语句2566.2?The Conditional Operator?条件运算符2606.3?The do Statement?do语句2616.4?The for Statement?for语句2656.5?Using Loops and Conditionals with Graphics?对图形使用循环和条件2716.6?Graphic Transformations?图形转换276Chapter 7?Object-Oriented Design?面向对象设计2897.1?Software Development Activities?软件开发活动2907.2?Identifying Classes and Objects?明确类和对象2917.3?Static Class Members?静态类成员2937.4?Class Relationships?类间关系2987.5?Interfaces?接口3107.6?Enumerated Types Revisited?再论枚举类型3177.7?Method Design?方法设计3207.8?Method Overloading?方法重载3317.9?Testing?测试3337.10?GUI Design?GUI设计3377.11?Mouse Events?鼠标事件3387.12?Key Events?按键事件343Chapter 8?Arrays?数组3558.1?Array Elements?数组元素3568.2?Declaring and Using Arrays?声明和使用数组3578.3?Arrays of Objects?对象数组3688.4?Command-Line Arguments?命令行实参3788.5?Variable Length Parameter Lists?可变长度参数表3808.6?Two-Dimensional Arrays?二维数组3848.7?Polygons and Polylines?多边形和折线3898.8?An Array of Color Objects?Color对象数组3928.9?Choice Boxes?选项框395Chapter 9?Inheritance?继承4079.1?Creating Subclasses?创建子类4089.2?Overriding Methods?重写方法4199.3?Class Hierarchies?类层次结构4229.4?Visibility?可见性4279.5?Designing for Inheritance?继承关系的设计4309.6?Inheritance in JavaFX?JavaFX中的继承4329.7?Color and Date Pickers?颜色和日期选择器4349.8?Dialog Boxes?对话框438Chapter 10?Polymorphism?多态性45110.1?Late Binding?后绑定45210.2?Polymorphism via Inheritance?利用继承实现多态性45310.3?Polymorphism via Interfaces?利用接口实现多态性46610.4?Sorting?排序46810.5?Searching?搜索47710.6?Designing for Polymorphism?多态性设计48310.7?Properties?属性48510.8?Sliders?滑动条49110.9?Spinners?微调器493Chapter 11?Exceptions?异常50111.1?Exception Handling?异常处理50211.2?Uncaught Exceptions?未捕获的异常50311.3?The try-catch Statement?try-catch语句50411.4?Exception Propagation?异常的传递50911.5?The Exception Class Hierarchy?异常类层次结构51311.6?I/O Exceptions?I/O异常51711.7?Tool Tips and Disabling Controls?工具提示与禁用控件52111.8?Scroll Panes?滚动面板52511.9?Split Panes and List Views?分隔面板和列表视图528Chapter 12?Recursion?递归53712.1?Recursive Thinking?递归思想53812.2?Recursive Programming?递归编程54012.3?Using Recursion?递归的应用54412.4?Tiled Images?平铺图形55512.5?Fractals?分形559Chapter 13?Collections?集合57313.1?Collections and Data Structures?集合与数据结构57413.2?Dynamic Representations?数据结构的动态表示57513.3?Linear Collections?线性集合58313.4?Non-Linear Data Structures?非线性数据结构58713.5?The Java Collections API?Java集合类API590Appendix AGlossary?术语表597Appendix BNumber Systems?数制系统621Appendix CThe Unicode Character Set?Unicode字符集629Appendix DJava Operators?Java运算符633Appendix EJava Modifiers?Java修饰符639Appendix FJava Coding Guidelines?Java编码指南643Appendix GJavaFX Layout Panes?JavaFX布局面板649Appendix HJavaFX Scene Builder659Appendix IRegular Expressions?正则表达式669Appendix JJavadoc Documentation Generator?Javadoc文档生成器671Appendix KJava Syntax?Java语法677Appendix LAnswers to Self-Review Questions?自测题答案691