An Introduction to Computer Science Using Java / Edition 2

An Introduction to Computer Science Using Java / Edition 2

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

View All Available Formats & Editions

ISBN-10: 0072323051

ISBN-13: 9780072323054

Pub. Date: 12/11/2001

Publisher: McGraw-Hill Companies, The

An Introduction to Computer Science Using Java by Kamin and Mickunas is designed for a CS1/Intro to Programming course in which java is used. The authors emphasize the process of programming, which teaches students how to develop correct, efficient, well-structed and stylish programs.

In this new edition, the authors put more emphasis on object-oriented programming

Overview

An Introduction to Computer Science Using Java by Kamin and Mickunas is designed for a CS1/Intro to Programming course in which java is used. The authors emphasize the process of programming, which teaches students how to develop correct, efficient, well-structed and stylish programs.

In this new edition, the authors put more emphasis on object-oriented programming, greatly expanding their coverage and using a more graphical approach. At the same time, the text has retained its coverage of the traditionally fundamental computer science topics such as the development of correct programs, iteration, arrays, recursion, and algorithm analysis. This blend prepares students to become sophisticated computer programmers, not simply JAVA programmers.

One of the unique aspects of the text are the debugging sections. In appropriate places throughout the text, the authors provide students with information on how to debug their programs. In addition, there are such pedagogical aids as "Bug Alerts" and a wide range of exercises, including new quick review exercises throughout the chapter.

Product Details

ISBN-13:
9780072323054
Publisher:
McGraw-Hill Companies, The
Publication date:
12/11/2001
Edition description:
REV
Pages:
784
Product dimensions:
7.40(w) x 9.10(h) x 1.10(d)

Table of Contents

List of Figuresx
List of Tablesxvi
List of Bug Alertsxviii
Prefacexx
1What is Programming?
1.1Mechanical Mouse in a Maze4
1.2Object-Oriented Programming11
1.3Computers and Data Representations13
1.4Compilers19
1.5Debugging23
1.6Applications and Applets25
2Classes and Methods I: Basics
2.1Some Simple Programs31
2.2Building Simple Classes40
2.3Text Output43
2.4Drawing in Java46
3Fundamental Data Types of Java
3.1Integers57
3.2Declarations, Variables, and Assignment Statements62
3.3Real Numbers66
3.4Strings71
3.5Debugging77
3.6Pitfalls of Numbers, Strings, and Characters88
4Decision Making
4.1The if Statement97
4.2Constructing and Analyzing Boolean Expressions109
4.3Comparing Objects117
4.4switch Statements122
4.5Debugging Decision Making128
4.6More About Boolean Operators136
5Classes and Methods II: Classes with Multiple Methods
5.1Building Classes with Multiple Methods149
5.2Initialization of Instance Variables152
5.3Scope of Variables153
5.4Class Constructors with Arguments156
5.5A Clock Class157
6Iteration
6.1while Loops173
6.2for Loops179
6.3do-while Loops181
6.4Loop Invariants183
6.5Reading Input in a Loop184
6.6Debugging Loops192
6.7More Drawing in Java201
6.8Iteration in Graphical Programs203
7Classes and Methods III: Working with Objects
7.1Object-Oriented Programming215
7.2Clocks Revisited219
7.3Constructors221
7.4Overloading Methods223
7.5Methods Invoking Methods226
7.6This230
7.7Visibility Qualifiers235
7.8Mutability238
7.9Design Decisions, Representation Independence, and Debugging242
7.10What Is main?254
8One-Dimensional Arrays
8.1Array Basics263
8.2Simple Array-Processing Loops269
8.3Simple Computations on Numerical Data271
8.4Arrays of Objects277
8.5Debugging Arrays283
8.6Sorting and Searching296
8.7One-Dimensional Arrays and Graphics303
9Nested Loops and Two-Dimensional Arrays
9.1Nested Loops313
9.2Two-Dimensional Arrays321
9.3Example: Crossword Puzzles329
9.4Mouse in a Maze Revisited336
9.5Drawing Pictures (advanced)345
10Classes and Methods IV: Static Methods and Variables
10.1Class Variables and Class Methods365
10.2Classes with No Instance Variables or Methods369
10.3Modular Development and Debugging375
10.4Interfaces388
11The Java AWT Part I: Mouse Events (Optional)
11.1Mouse Events399
11.2Objects in GUI Programs405
11.3Debugging Classes410
12Inheritance and Exceptions
12.1Packages423
12.2Inheritance426
12.3Exceptions449
13Java AWT Part II (Optional)
13.1The Java AWT473
13.2The Java AWT Event Model482
13.3A Temperature Conversion GUI485
13.4Using Conditionals with Reactive Components491
13.5Drawing in a Frame499
13.6The AWT Component Hierarchy503
13.7The Canvas Class505
13.8Designing the Screen Layout509
13.9A Calendar Program516
13.10Java and the Web522
14Recursion
14.1Introduction to Recursion537
14.2A First Example539
14.3Divide and Conquer541
14.4Under the Hood543
14.5Processing Arrays Recursively546
14.6Recursive Functions on Lists564
14.7Dynamic Programming580
14.8Recursive Drawings583
15Text Processing and File Input/Output
15.1The Classes String and StringBuffer607
15.2Sequential Files609
15.3Debugging File I/O615
15.4A Mail-Merge Application619
15.5A Database Application623
15.6Reading Input from the Web (Optional)631
16Case Study: the Game of Reversi
16.1The Game of Reversi641
16.2Organization of the Solution644
16.3The Classes646
16.4The Reversi Classes648
AOther Java Features
A.1Comments670
A.2No Preprocessor671
A.3Data Types671
A.4Control Structures674
A.5The final Modifier675
A.6Inner Classes675
A.7Concurrency-Related Features676
A.8The transient and native Modifiers677
BPrecedence Rules
CClasses in CSLib and the Java API
C.1Classes in the CSLib package681
C.2Classes in the java.lang Package684
C.3Classes in the java.util Package687
C.4Classes in the java.awt Package688
C.5Classes in the java.awt.event Package695
C.6Classes in the java.applet Package698
C.7Classes in the java.io Package698
DUML Class Diagrams
D.1Specifying a Class700
D.2Associations703
D.3Inheritance and Generalization704
D.4Aggregations704
D.5Interfaces and Realization705
EJavadoc and CSLib
E.1Javadoc706
E.2The CSLib Package708
Index735

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

An Introduction to Computer Science Using Java 0 out of 5 based on 0 ratings. 0 reviews.