search for books and compare prices
Tables of Contents for Java Gently
Chapter/Section Title
Page #
Page Count
List of examples and case studies
xii
 
Preface to the third edition
xv
 
The development of Java Gently
xxii
 
Introduction
1
15
Welcome to Java
1
5
Software development
6
2
The approach of this book
8
3
Getting started with Java
11
3
The Java Gently web site
14
2
Summary
15
1
Quiz: to get you started
15
1
Simple programs
16
38
Three starter programs
16
6
The structure of a program
22
6
Basics of object orientation
28
8
Beginning with output
36
4
Simple calculations
40
14
Summary
48
2
Quiz
50
1
Problems
51
3
Types and methods
54
59
Talking about types
54
6
Repetition with for-loops
60
8
Making methods
68
2
Passing parameters and returning results
70
7
Typed methods
77
8
The type boolean
85
4
Case Study 1: Pizza Delivery 2U
89
24
Summary
105
2
Quiz
107
1
Problems
108
5
Input and output
113
48
Inputting interactively
113
4
User-friendly input--output
117
11
Creating and accessing packages
128
3
Selection with if-else
131
8
File input and output
139
4
Handling exceptions
143
18
Summary
154
1
Quiz
155
2
Problems
157
4
Controlling the flow
161
41
Properties of a good program
161
5
Conditional loops with while-and do-statements
166
12
User-defined exceptions
178
3
The type char
181
3
The switch-statement
184
4
Case Study 2: Rock--scissors--paper game
188
14
Summary
196
1
Quiz
197
1
Problems
198
4
Arrays and tables
202
57
Simple arrays
202
22
Tables
224
6
The Graph class
230
8
Sorting and searching
238
6
Class-independent tables
244
15
Summary
253
1
Quiz
254
1
Problems
255
4
Formatting
259
47
Strings and string handling
259
10
Tokenizers and envelopes
269
3
Inside the Stream class
272
7
Formatting numbers
279
9
Dates, calendars and time
288
18
Summary
301
1
Quiz
302
1
Problems
303
3
Objects at work
306
42
Designing an object-oriented program
306
11
Properties of objects
317
12
Lists and iterators
329
4
Case Study 3: Nelson's Coffee Shop
333
15
Summary
344
1
Quiz
345
1
Problems
346
2
Abstraction and inheritance
348
35
Class power
348
3
Inheritance
351
5
Abstraction through interfaces
356
7
Abstract methods and classes
363
2
Case Study 4: Veterinary Tags
365
8
Serialization
373
10
Summary
379
1
Quiz
380
2
Problems
382
1
Graphics and user interfaces
383
34
Introduction to the awt and Swing
383
3
Putting graphics in a window
386
13
Laying out a GUI
399
18
Summary
413
1
Quiz
414
1
Problems
415
2
Event-driven programming
417
47
Interaction with text fields
418
4
Events, listeners and handlers
422
2
Case Study 5: The Flag Designer
424
10
Managing sequences of events
434
10
Case Study 6: Supermarket Till
444
8
Case Study 7: The Converter with Swing
452
12
Summary
461
1
Quiz
461
2
Problems
463
1
Applets in action
464
43
From applications to applets
464
6
Applets in browsers
470
16
Sound and images
486
7
Case Study 8: The Nature Conservation Project
493
14
Summary
503
1
Quiz
504
2
Problems
506
1
Multithreading
507
44
Introduction to multithreading
507
2
Setting up threads
509
18
Synchronization among threads
527
6
Inside the Display class
533
7
Case Study 9: Walkman Hire
540
11
Summary
547
1
Quiz
548
1
Problems
549
2
Networking
551
50
Connecting via the Internet
551
7
Ports and sockets
558
7
Case Study 10: The Chatter system
565
6
Database connectivity
571
11
Accessing remote objects
582
5
Case Study 11: The Airport Announcer system
587
14
Summary
596
1
Quiz
597
2
Problems
599
2
Data structures and algorithms
601
41
About data structures
601
3
Linear and binary searching
604
7
Quicksort and performance
611
4
Stacks and queues
615
11
Linked lists again
626
6
Bit sets
632
10
Summary
639
1
Quiz
639
2
Problems
641
1
Appendix A Modelling notation for Java Gently
642
4
Appendix B Collected syntax and semantic forms
646
3
Appendix C List of programs, applets and classes
649
3
Appendix D Answers to quizzes
652
3
Index
655