An Introduction to Computer Science : Using Java / Edition 1

An Introduction to Computer Science : Using Java / Edition 1

by Samuel N. Kamin, Edward M. Reingold, M. Dennis Mickunas
     
 

ISBN-10: 0070342245

ISBN-13: 9780070342248

Pub. Date: 01/01/1997

Publisher: McGraw-Hill Higher Education

Not merely an introductory Java text,this new book is truly an introductory computer science text. The authors have developed examples from the student viewpoint. They have also included examples that will give students a taste of more advanced areas of computer science. An Introduction to Computer Science Using Java covers all the essentials of

Overview

Not merely an introductory Java text,this new book is truly an introductory computer science text. The authors have developed examples from the student viewpoint. They have also included examples that will give students a taste of more advanced areas of computer science. An Introduction to Computer Science Using Java covers all the essentials of programming,emphasizing the object-oriented paradigm. Emphasis is also placed on the use of classes and the construction of data structures using objects.

Product Details

ISBN-13:
9780070342248
Publisher:
McGraw-Hill Higher Education
Publication date:
01/01/1997
Series:
McGraw-Hill Series in Computer Science
Edition description:
Older Edition
Pages:
540

Table of Contents

List of Figures
xxiii
List of Tables
xxvii
List of Bug Alerts
xxix
What is Programming?
Mechanical Mouse in a Maze
4(4)
Exercises - First Set
8(1)
Computers and Programming Languages
8(1)
Programs and Algorithms
9(1)
Applications and Applets
10(1)
Compilers and Interpreters
11(3)
Exercises - Second Set
13(1)
Object-Oriented Programming: Mouse in a Maze Revisited
14(5)
An Infestation of Mice - Abstraction
15(2)
Why Object-Oriented Programming?
17(1)
Summary
17(2)
Basic Elements of Java
Two Simple Programs
19(3)
Simple Input and Output
22(2)
Exercises - First Set
23(1)
Variables and Assignment Statements
24(2)
Data Types and Expressions
26(5)
Classes, Methods, and Objects
31(5)
The String Class
33(1)
Class Methods and Variables
34(1)
Review of Dot Notation
35(1)
Prototypes
35(1)
Statements
36(1)
Program Layout
37(2)
Debugging
39(14)
Exercises - Second Set
48(1)
Summary
49(4)
Applets
HTML
53(5)
Applets and the Applet Tag
58(2)
The "Hello!" Applet
60(1)
The Java API
61(2)
Running Applets Using the appletviewer
63(2)
The Temperature Applet
65(3)
Drawing in Applets
68(6)
Components
74(7)
Size
74(1)
Color
75(1)
Exercises - First Set
76(1)
Summary
77(4)
Decision Making
The if Statement
81(5)
Constructing and Analyzing Boolean Expressions
86(10)
Exercises - First Set
92(4)
switch Statements
96(4)
Debugging Decision Making
100(7)
Exercises - Second Set
105(2)
Using Conditionals in Applets
107(12)
More Components
110(4)
Exercises - Third Set
114(1)
Summary
114(5)
Classes and Methods I
Object-Oriented Programming
119(1)
Methods
120(2)
The Time Class
122(11)
Time's Clients
123(5)
The Time Class
128(3)
Exercises - First Set
131(2)
More Time Methods
133(6)
Exercises - Second Set
137(2)
Instance Methods
139(8)
Changing Member Values - Mutability
147(4)
Example: A Tic-Tac-Toe Board
151(9)
Representation Independence
157(1)
Exercises - Third Set
158(2)
Debugging Classes
160(6)
Objects in Applets
166(11)
Events
171(2)
Exercises - Fourth Set
173(1)
Summary
174(3)
Iteration
while Loops
177(4)
Simple Loops
180(1)
For Loops
181(1)
do-while Loops
182(3)
Exercises - First Set
183(2)
Reading Input in a Loop
185(5)
The break Statement in Loops
190(1)
Debugging Loops
190(9)
Exercises - Second Set
197(2)
Iteration in Applets
199(8)
Exercises - Third Set
204(1)
Summary
204(3)
One-Dimensional Arrays
Array Basics
207(3)
Simple Array-Processing Loops
210(10)
Exercises - First Set
216(4)
Debugging Arrays
220(8)
Sorting and Searching
228(7)
Exercises - Second Set
234(1)
One-Dimensional Arrays in Applets
235(6)
Exercises - Third Set
237(1)
Summary
238(3)
Classes and Methods II
Class Variables and Class Methods
241(4)
Exercises - First Set
244(1)
Classes with No Instance Variables or Methods
245(1)
Overloading Methods
246(2)
Exercises - Second Set
247(1)
Modular Development and Debugging
248(10)
The Date Class
249(8)
Exercises - Third Set
257(1)
Using Static Methods in Applets
258(17)
Designing the Screen Layout
259(6)
A Calendar Applet
265(7)
Exercises - Fourth Set
272(1)
Summary
272(3)
Nested Loops and Two-Dimensional Arrays
Nested Loops
275(6)
Exercises - First Set
279(2)
Two-Dimensional Arrays
281(9)
Two-Dimensional Array Basics
281(4)
Initializing Two-Dimensional Arrays
285(1)
Two-Dimensional Arrays Are Arrays of Arrays
286(1)
Exercises - Second Set
287(3)
Drawing Pictures
290(14)
Exercises - Third Set
302(2)
Mouse in a Maze Revisited
304(4)
Two-Dimensional Arrays in Applets
308(11)
Mouse in a Maze, with Graphics
309(2)
A Graphical Version of SoftFrame
311(2)
Summary
313(6)
Strings, Characters, and File I/O
Characters
319(5)
The Classes String and StringBuffer
324(6)
Exercises - First Set
327(3)
Sequential Files
330(1)
Debugging File I/O
331(3)
A Mail-Merge Application
334(4)
Exercises - Second Set
338(1)
A Database Application
338(7)
Using Strings in Applets
345(8)
Summary
350(3)
Recursion
Introduction to Recursion
353(1)
How to Write a Recursive Function
354(2)
Under the Hood
356(3)
Exercises - First Set
358(1)
Processing Arrays Recursively
359(19)
Simple Sorting Methods
359(1)
Selection Sort
360(1)
Insertion Sort
361(1)
Quicksort
362(8)
Exercises - Second Set
370(3)
Solving Linear Systems
373(5)
Recursive Functions on Lists
378(18)
Linked Structures
379(3)
Constructing Lists from Input
382(3)
Adding Operations to the IntList Class
385(5)
Exercises - Third Set
390(1)
Sorting Lists
390(5)
Exercises - Fourth Set
395(1)
Recursion in Applets - Curve Drawing
396(21)
Example: Sierpinski Curves
396(8)
Example: Hilbert Curves
404(8)
Exercises - Fifth Set
412(1)
Summary
413(4)
The Java Api
Packages
417(2)
Inheritance
419(12)
Private, Public, and Protected
422(2)
Constructors
424(1)
Dynamic Binding
425(5)
Inheritance in the API
430(1)
Interfaces
431(4)
Interface in the API
434(1)
Exceptions
435(3)
Exercises - First Set
437(1)
Mouse-In-a-Maze Applet
438(5)
Summary
439(4)
Case Study: The Game of Reversi
The Game of Reversi
443(1)
Organization of the Solution
444(3)
Asymmetrical Implementation
446(1)
The Classes
447(17)
The Screen Class
447(2)
The ReversiApplet Class
449(1)
The Referee Class
450(3)
The Board Class
453(7)
The SmartPlayer Class
460(1)
Exercises -- First Set
461(2)
Summary
463(1)
APPENDIXES
A Other Java Features
A.1 Comments
464(1)
A.1.1 Old-Style Comments
464(1)
A.1.2 Documentation Comments
465(1)
A.2 No Preprocessor
465(1)
A.3 Data Types
465(1)
A.3.1 The Size of Primitive Types
465(1)
A.4 Operators
466(3)
A.5 Control Structures
469(1)
A.5.1 break and continue Statements
469(1)
A.6 Remaining Features
470(1)
A.6.1 The synchronized Statement and Modifier
470(1)
A.6.2 The final Modifier
470(1)
A.6.3 The native Modifier
470(1)
A.6.4 The transient and volatile Modifiers
470(12)
B Precedence Rules
C Mathematical Methods in java.lang.Math
D The Keyboard Class
Further Reading - An Annotated Bibliography 482(4)
Solutions to Exercises 486(41)
First Set
486(1)
First Set
487(1)
Second Set
488(1)
First Set
489(1)
First Set
490(2)
Second Set
492(1)
Third Set
493(2)
First Set
495(2)
Second Set
497(1)
Third Set
497(2)
Fourth Set
499(2)
First Set
501(1)
Second Set
502(1)
Third Set
503(2)
First Set
505(6)
Second Set
511(1)
First Set
512(1)
Second Set
513(1)
Third Set
514(2)
First Set
516(1)
Second Set
517(1)
First Set
518(1)
First Set
519(1)
Second Set
520(2)
Third Set
522(1)
Fourth Set
523(1)
First Set
524(3)
Index 527

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >