100% found this document useful (4 votes)
13 views

(eBook PDF) Big Java: Early Objects 5th Editionpdf download

The document provides links to various editions of the eBook 'Big Java: Early Objects' and related Java programming resources. It outlines the book's structure, which includes fundamentals, object-oriented design, data structures, algorithms, and applied topics, along with appendices and online resources. Additionally, it emphasizes pedagogical elements designed to enhance learning and problem-solving skills in programming.

Uploaded by

gafersiaze85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
13 views

(eBook PDF) Big Java: Early Objects 5th Editionpdf download

The document provides links to various editions of the eBook 'Big Java: Early Objects' and related Java programming resources. It outlines the book's structure, which includes fundamentals, object-oriented design, data structures, algorithms, and applied topics, along with appendices and online resources. Additionally, it emphasizes pedagogical elements designed to enhance learning and problem-solving skills in programming.

Uploaded by

gafersiaze85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

(eBook PDF) Big Java: Early Objects 5th Edition

download

https://ebookluna.com/product/ebook-pdf-big-java-early-
objects-5th-edition/

Download more ebook from https://ebookluna.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebookluna.com
to discover even more!

(eBook PDF) Big Java: Early Objects, 7th Edition

https://ebookluna.com/product/ebook-pdf-big-java-early-objects-7th-edition/

(eBook PDF) Big Java: Early Objects, 6th Edition by Cay S. Horstmann

https://ebookluna.com/product/ebook-pdf-big-java-early-objects-6th-edition-
by-cay-s-horstmann/

(eBook PDF) Starting Out with Java: Early Objects 5th Edition

https://ebookluna.com/product/ebook-pdf-starting-out-with-java-early-
objects-5th-edition/

(eBook PDF) Big Java Late Objects 2nd Edition

https://ebookluna.com/product/ebook-pdf-big-java-late-objects-2nd-edition/
(eBook PDF) Starting Out with Java: Early Objects 5th Global Edition

https://ebookluna.com/product/ebook-pdf-starting-out-with-java-early-
objects-5th-global-edition/

(eBook PDF) Java How To Program (Early Objects) 10th

https://ebookluna.com/product/ebook-pdf-java-how-to-program-early-
objects-10th/

(eBook PDF) Starting Out with Java Early Objects 6th Edition by Tony Gaddis

https://ebookluna.com/product/ebook-pdf-starting-out-with-java-early-
objects-6th-edition-by-tony-gaddis/

(eBook PDF) Java How to Program, Early Objects 11th Edition by Paul J.
Deitel

https://ebookluna.com/product/ebook-pdf-java-how-to-program-early-
objects-11th-edition-by-paul-j-deitel/

(eBook PDF) Big C++: Late Objects 3rd Edition

https://ebookluna.com/product/ebook-pdf-big-c-late-objects-3rd-edition/
vi Preface

Part A: Fundamentals (Chapters 1–7)


Chapter 1 contains a brief introduction to computer science and Java programming.
Chapter 2 shows how to manipulate objects of predefined classes. In Chapter 3,
you will build your own simple classes from given specifications. Fundamental data
types, branches, loops, and arrays are covered in Chapters 4–7.

Part B: Object-Oriented Design (Chapters 8–12)


Chapter 8 takes up the subject of class design in a systematic fashion, and it intro-
duces a very simple subset of the UML notation. The discussion of polymorphism
and inheritance is split into two chapters. Chapter 9 covers inheritance and polymor-
phism, whereas Chapter 10 covers interfaces. Exception handling and basic file input/
output are covered in Chapter 11. The exception hierarchy gives a useful example for
inheritance. Chapter 12 contains an introduction to object-oriented design, including
two significant case studies.

Part C: Data Structures and Algorithms (Chapters 13–18)


Chapters 13 through 18 contain an introduction to algorithms and data structures,
covering recursion, sorting and searching, linked lists, binary trees, and hash tables.
These topics may be outside the scope of a one-semester course, but can be covered
as desired after Chapter 7 (see Figure 1). Recursion, in Chapter 13, starts with simple
examples and progresses to meaningful applications that would be difficult to imple-
ment iteratively. Chapter 14 covers quadratic sorting algorithms as well as merge sort,
with an informal introduction to big-Oh notation. Each data structure is presented
in the context of the standard Java collections library. You will learn the essential
abstractions of the standard library (such as iterators, sets, and maps) as well as the
performance characteristics of the various collections. Chapter 18 introduces Java
generics. This chapter is suitable for advanced students who want to implement their
own generic classes and methods.

Part D: Applied Topics (Chapters 19–25)


Chapters 19 through 25 cover Java programming techniques that definitely go
beyond a first course in Java (21–25 are on the book’s companion site). Although, as
already mentioned, a comprehensive coverage of the Java library would span many
volumes, many instructors prefer that a textbook should give students additional
reference material valuable beyond their first course. Some institutions also teach a
second-semester course that covers more practical programming aspects such as data-
base and network programming, rather than the more traditional in-depth material
on data structures and algorithms. This book can be used in a two-semester course
to give students an introduction to programming fundamentals and broad coverage
of applications. Alternatively, the material in the final chapters can be useful for stu-
dent projects. The applied topics include graphical user-interface design, advanced
file handling, multithreading, and those technologies that are of particular interest to
server-side programming: networking, databases, XML, and web applications. The
Internet has made it possible to deploy many useful applications on servers, often
accessed by nothing more than a browser. This server-centric approach to application
development was in part made possible by the Java language and libraries, and today,
much of the industrial use of Java is in server-side programming.

bj5_fm_06.indd 6 11/6/12 9:18 PM


Preface vii

Appendices
Many instructors find it highly beneficial to require a consistent style for all assign-
ments. If the style guide in Appendix I conflicts with instructor sentiment or local
customs, however, it is available in electronic form so that it can be modified.
A. The Basic Latin and Latin-1 Subsets F. Tool Summary
of Unicode G. Number Systems
B. Java Operator Summary H. UML Summary
C. Java Reserved Word Summary I. Java Language Coding Guidelines
D. The Java Library J. HTML Summary
E. Java Syntax Summary

Custom Book and eBook Options


Big Java may be ordered as a custom print or eBook that includes your choice of
chapters—including those from other Horstmann titles. Visit customselect.wiley.com
to create your custom book order.
To order the Wiley Select Edition of Big Java with all 25 chapters in the printed
book, specify ISBN 978-1-119-93670-1 when you order books.
Big Java is available in a variety of eBook formats at prices that are significantly
lower than the printed book. Please contact your Wiley sales rep for more informa-
tion or check www.wiley.com/college/horstmann for available versions.

Web Resources
This book is complemented by a complete suite of online resources. Go to www.wiley.
com/college/horstmann to visit the online companion sites, which include

• “CodeCheck,” a new online service currently in development by Cay Horstmann


that students can use to check their homework assignments and to work on addi-
tional practice problems. Visit http://horstmann.com/codecheck to learn more and to
try it out.
• Source code for all example programs in the book and in online examples.
• Worked Examples that apply the problem-solving steps in the book to other
realistic examples.
• Animations of key concepts.
• Lab exercises that apply chapter concepts (with solutions for instructors only).
• Lecture presentation slides (for instructors only).
• Solutions to all review and programming exercises (for instructors only).
• A test bank that focuses on skills, not just terminology (for instructors only). This
extensive set of multiple-choice questions can be used with a word processor or
imported into a course management system.

WORKED EXAMPLE 6.3 A Sample Debugging Session


Learn how to find bugs in an algorithm for counting the
Pointers in the book syllables of a word. Go to wiley.com/go/javaexamples and
download Worked Example 6.3.
describe what students
will find on the Web.
FULL CODE EXAMPLE

Go to wiley.com/go/
javacode to download
a program that dem-
onstrates variables
and assignments.

bj5_fm_06.indd 7 10/26/12 11:44 AM


viii Walkthrough

A Walkthrough of the Learning Aids


The pedagogical elements in this book work together to focus on and reinforce key
concepts and fundamental principles of programming, with additional tips and detail
organized to support and deepen these fundamentals. In addition to traditional
features, such as chapter objectives and a wealth of exercises, each chapter contains
elements geared to today’s visual learner.

254 Chapter 6 Loops

6.3 The for Loop


Throughout each chapter,
It often happens that you want to execute a sequence of statements a given number
margin notes show where The for loop is
used when a of times. You can use a while loop that is controlled by a counter, as in the following
example:
new concepts are introduced
value runs from a
starting point to an
ending point with a int counter = 1; // Initialize the counter
and provide an outline of key ideas. constant increment
or decrement.
while (counter <= 10) // Check the counter
{
System.out.println(counter);
counter++; // Update the counter
}

Because this loop type is so common, there is a spe-


cial form for it, called the for loop (see Syntax 6.2).
for (int counter = 1; counter <= 10; counter++)
{
Additional full code examples }
System.out.println(counter);

provides complete programs for FULL CODE EXAMPLE Some people call this loop count-controlled. In con-
trast, the while loop of the preceding section can be
students to run and modify.
Go to wiley.com/go/
javacode to download
a program that
called an event-controlled loop because it executes
uses common loop until an event occurs; namely that the balance reaches
algorithms. the target. Another commonly used term for a
count-controlled loop is definite. You know from
the outset that the loop body will be executed a
definite number of times; ten times in our example.
In contrast, you do not know how many iterations it
takes to accumulate a target balance. Such a loop is
Annotated syntax boxes called indefinite. You can visualize the for loop as
an orderly sequence of steps.
provide a quick, visual overview
of new language constructs. Syntax 6.2 for Statement

Syntax for (initialization; condition; update)


{
statements
}
These three
expressions should be related.
See page 259.

Annotations explain required This initialization The condition is This update is


components and point to more happens once
before the loop starts.
checked before
each iteration.
executed after
each iteration.
information on common errors for (int i = 5; i <= 10; i++)
or best practices associated The variable i is
{
sum = sum + i; This loop executes 6 times.
with the syntax. defined only in this for loop.
See page 261.
} See page 260.

Analogies to everyday objects are


used to explain the nature and behavior
of concepts such as variables, data
Like a variable in a computer types, loops, and more.
program, a parking space has
an identifier and a contents.

bj5_fm_06.indd 8 10/24/12 6:23 PM


Walkthrough ix

Memorable photos reinforce


analogies and help students
remember the concepts.

In the same way that there can be a street named “Main Street” in different cities,
a Java program can have multiple variables with the same name.

Problem Solving sections teach


techniques for generating ideas and 7.5 Problem Solving: Discovering Algorithms by Manipulating Physical Objects 339

evaluating proposed solutions, often Now how does that help us with our problem, switching the first and the second
using pencil and paper or other half of the array?
Let’s put the first coin into place, by swapping it with the fifth coin. However, as
artifacts. These sections emphasize Java programmers, we will say that we swap the coins in positions 0 and 4:

that most of the planning and problem


solving that makes students successful
happens away from the computer.

Next, we swap the coins in positions 1 and 5:

HOW TO 6.1 Writing a Loop How To guides give step-by-step


This How To walks you through the process of implementing a guidance for common programming
loop statement. We will illustrate the steps with the following
example problem. tasks, emphasizing planning and
Problem Statement Read twelve temperature values (one for
each month) and display the number of the month with the high- testing. They answer the beginner’s
est temperature. For example, according to worldclimate.com, the
average maximum temperatures for Death Valley are (in order by question, “Now what do I do?” and
month, in degrees Celsius):
18.2 22.6 26.4 31.1 36.6 42.2 45.7 44.5 40.2 33.1 24.2 17.6
integrate key concepts into a
In this case, the month with the highest temperature (45.7 degrees problem-solving sequence.
Celsius) is July, and the program should display 7.

Step 1 Decide what work must be done inside the loop.

Every loop needs to do some kind of repetitive work, such as


• Reading another item.
• Updating a value (such as a bank balance or total).
• Incrementing a counter. Worked Examples apply
If you can’t figure out what needs to go inside the loop, start by writing down the steps that
the steps in the How To to a
WORKED EXAMPLE 6.1 Credit Card Processing different example, showing
Learn how to use a loop to remove spaces from a credit card
number. Go to wiley.com/go/javaexamples and download
how they can be used to
Worked Example 6.1.
plan, implement, and test
a solution to another
programming problem.
Table 1 Variable Declarations in Java
Variable Name Comment

int width = 20; Declares an integer variable and initializes it with 20.

int perimeter = 4 * width; The initial value need not be a fixed value. (Of course, width
must have been previously declared.)
String greeting = "Hi!"; This variable has the type String and is initialized with the
Example tables support beginners
string “Hi”. with multiple, concrete examples.
height = 30; Error: The type is missing. This statement is not a declaration
but an assignment of a new value to an existing variable—see These tables point out common
Section 2.2.5.
errors and present another quick
Error: You cannot initialize a number with the string “20”.
reference to the section’s topic.
int width = "20";
(Note the quotation marks.)
int width; Declares an integer variable without initializing it. This can be a
cause for errors—see Common Error 2.1 on page 42.
int width, height; Declares two integer variables in a single statement. In this
book, we will declare each variable in a separate statement.

bj5_fm_06.indd 9 10/24/12 6:28 PM


x Walkthrough

This means “compute the value of width + 10 1 and store that value in the variable
width 2 ” (see Figure 4).
Progressive figures trace code
In Java, it is not a problem that the variable width is used on both sides of the = sym-
bol. Of course, in mathematics, the equation width = width + 10 has no solution.
segments to help students visualize
the program flow. Color is used
1 Compute the value of the right-hand side consistently to make variables and
width = 30
other elements easily recognizable.
width + 10

40

2 Store the value in the variable Figure 3


1 Initialize counter
Execution of a for (int counter = 1; counter <= 10; counter++)
Figure 4 width = 40 for Loop {
Executing the Statement System.out.println(counter);
counter = 1 }
width = width + 10

2 Check condition
for (int counter = 1; counter <= 10; counter++)
{
System.out.println(counter);
counter = 1 }

3 Execute loop body


for (int counter = 1; counter <= 10; counter++)
{
System.out.println(counter);
counter = 1 }

4 Update counter
for (int counter = 1; counter <= 10; counter++)
{

Students can view animations counter = 2 }


System.out.println(counter);

of key concepts on the Web.


A N I M AT I O N 5 Check condition again
for (int counter = 1; counter <= 10; counter++)
The for Loop {
System.out.println(counter);
counter = 2 }

The for loop neatly groups the initialization, condition, and update expressions
together. However, it is important to realize that these expressions are not executed
Self-check exercises at the together (see Figure 3).

end of each section are designed • The initialization is executed once, before the loop is entered. 1

to make students think through • The condition is checked before each iteration. 2 5
• The update is executed after each iteration. 4
the new material—and can
Write the for loop of the Investment class as a while loop.
spark discussion in lecture.
11.

SELF CHECK
12. How many numbers does this loop print?
for (int n = 10; n >= 0; n--)
{
System.out.println(n);
}

13. Write a for loop that prints all even numbers between 10 and 20 (inclusive).
14. Write a for loop that computes the sum of the integers from 1 to n.

Practice It Now you can try these exercises at the end of the chapter: R6.4, R6.10, E6.8, E6.12.
Optional science and business
exercises engage students with •• Business E6.17 Currency conversion. Write a program

realistic applications of Java. that first asks the user to type today’s
price for one dollar in Japanese yen,
then reads U.S. dollar values and
converts each to yen. Use 0 as a sentinel.

• Science P6.15 Radioactive decay of radioactive materials can be


section_1/Investment.java modeled by the equation A = A0e-t (log 2/h), where A is
1 /** the amount of the material at time t, A0 is the amount
2 A class to monitor the growth of an investment that at time 0, and h is the half-life.
3 accumulates interest at a fixed annual rate.
4 */ Technetium-99 is a radioisotope that is used in imaging
5 public class Investment of the brain. It has a half-life of 6 hours. Your program
6 { should display the relative amount A / A0 in a patient
7 private double balance; body every hour for 24 hours after receiving a dose.
8 private double rate;
9 private int year;
10
11 /**
12 Constructs an Investment object from a starting balance and
13 interest rate.
14 @param aBalance the starting balance
15
16 */
@param aRate the interest rate in percent
Program listings are carefully
17 public Investment(double aBalance, double aRate)
18 { designed for easy reading,
19 balance = aBalance;
20
21
rate = aRate;
year = 0;
going well beyond simple
22
23
}
color coding. Methods are set
24
25
/**
Keeps accumulating interest until a target balance has off by a subtle outline.
26 been reached.
27 @param targetBalance the desired balance
28 */

bj5_fm_05.indd 10 10/18/12 3:25 PM


Walkthrough xi

Length and Size


Common Errors describe the kinds Common Error 7.4
Unfortunately, the Java syntax for Data Type Number of Elements
of errors that students often make, determining the number of elements
in an array, an array list, and a string Array a.length
with an explanation of why the errors is not at all consistent. It is a com-
mon error to confuse these. You just Array list a.size()

occur, and what to do about them. have to remember the correct syntax
for every data type. String a.length()

Programming Tip 5.5 Hand-Tracing


A very useful technique for understanding whether a pro-
gram works correctly is called hand-tracing. You simulate
the program’s activity on a sheet of paper. You can use this
method with pseudocode or Java code.
Get an index card, a cocktail napkin, or whatever sheet
of paper is within reach. Make a column for each variable.
Have the program code ready. Use a marker, such as a
paper clip, to mark the current statement. In your mind,
execute statements one at a time. Every time the value of a
variable changes, cross out the old value and write the new
value below the old one. Hand-tracing helps you
For example, let’s trace the getTax method with the data understand whether a
Programming Tips explain from the program run above.
When the TaxReturn object is constructed, the income
program works correctly.

good programming practices, instance variable is set to 80,000 and status is set to MARRIED. Then the getTax method is called.
In lines 31 and 32 of TaxReturn.java, tax1 and tax2 are initialized to 0.
and encourage students to be 29 public double getTax()
30 {

more productive with tips and income status tax1 tax2


31 double tax1 = 0;
32 double tax2 = 0;
33 80000 MARRIED 0 0
techniques such as hand-tracing. Because status is not SINGLE, we move to the else
branch of the outer if statement (line 46).
34 if (status == SINGLE)
35 {
36 if (income <= RATE1_SINGLE_LIMIT)
37 {
38 tax1 = RATE1 * income;
39 }
40 else
41 {
42 tax1 = RATE1 * RATE1_SINGLE_LIMIT;
43 tax2 = RATE2 * (income - RATE1_SINGLE_LIMIT);
44 }
45 }
46 else
47 {

Special Topic 11.2 File Dialog Boxes


In a program with a graphical user interface, you will want to use a file dialog box (such as the
one shown in the figure below) whenever the users of your program need to pick a file. The
JFileChooser class implements a file dialog box for the Swing user-interface toolkit.
The JFileChooser class has many options to fine-tune the display of the dialog box, but in its
Special Topics present optional most basic form it is quite simple: Construct a file chooser object; then call the showOpenDialog
or showSaveDialog method. Both methods show the same dialog box, but the button for select-
topics and provide additional ing a file is labeled “Open” or “Save”, depending on which method you call.
For better placement of the dialog box on the screen, you can specify the user-interface
explanation of others. New component over which to pop up the dialog box. If you don’t care where the dialog box pops
up, you can simply pass null. The showOpenDialog and showSaveDialog methods return either
features of Java 7 are also JFileChooser.APPROVE_OPTION, if the user has chosen a file, or JFileChooser.CANCEL_OPTION, if the
user canceled the selection. If a file was chosen, then you call the getSelectedFile method to
covered in these notes. obtain a File object that describes the file. Here is a complete example:
FULL CODE EXAMPLE
JFileChooser chooser = new JFileChooser();
Go to wiley.com/go/ Scanner in = null;
javacode to download
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)
a program that
{
demonstrates how to
use a file chooser. File selectedFile = chooser.getSelectedFile();
in = new Scanner(selectedFile);
. . .
}

Call with
showOpenDialog
method

Computing & Society 1.1 Computers Are Everywhere


Button is “Save” when
When computers The advent of ubiqui-
showSaveDialog method
were first invented tous computing changed
is called
in the 1940s, a computer filled an many aspects of our
entire room. The photo below shows lives. Factories used
the ENIAC (electronic numerical inte- to employ people to
A JFileChooser Dialog Box
grator and computer), completed in do repetitive assembly
1946 at the University of Pennsylvania. tasks that are today car-
The ENIAC was used by the military ried out by computer-
Computing & Society presents social to compute the trajectories of projec- controlled robots, oper-
tiles. Nowadays, computing facilities ated by a few people
and historical topics on computing—for of search engines, Internet shops, and who know how to work
social networks fill huge buildings with those computers.
interest and to fulfill the “historical and called data centers. At the other end of Books, music, and mov-
the spectrum, computers are all around ies are nowadays often

social context” requirements of the us. Your cell phone has a computer consumed on com- This transit card contains a computer.
inside, as do many credit cards and fare puters, and comput-

ACM/IEEE curriculum guidelines.


cards for public transit. A modern car ers are almost always
has several computers––to control the involved in their production. The could not have been written without
engine, brakes, lights, and the radio. book that you are reading right now computers.

bj5_fm_05.indd 11 10/18/12 3:25 PM


xii Walkthrough

Web Resources

http://horstmann.com/codecheck/
CodeCheck “CodeCheck” is a new
online service currently in development
by Cay Horstmann that students can
use to check their homework and to
work on additional practice problems.
Visit http://horstmann.com/codecheck
to learn more and to try it out.

Test Bank Instructors can use quiz and


test questions designed to exercise
students’ code reading and writing skills.

10) What is displayed after executing the given code snippet?

int[] mymarks = new int[10];


int total = 0;
Scanner in = new Scanner(System.in);
for (int cnt = 1; cnt <= 10; cnt++)
{
System.out.print("Enter the marks: ");
mymarks[cnt] = in.nextInt();
total = total + mymarks[cnt];
}
System.out.println(total);

a) The code snippet displays the total marks of all ten subjects.
b) The for loop causes a run-time time error on the first iteration.
c) The code snippet causes a bounds error.
d) The code snippet displays zero.

Lab Exercises These multi-part


1.1) Consider the following Card class. exercises ask students to apply
public class Card
{
chapter concepts. They can serve
private String name; as “warm-ups” in the lab or to Animations Students can
public Card() provide additional practice. play and replay dynamic
{
name = ""; explanations of concepts
}
and program flow.
public Card(String n)
{
name = n;
}

public String getName()


{
return name;
}

public boolean isExpired()


{
return false;
}

public String format()


{
return "Card holder: " + name;
}
}

Use this class as a superclass to implement a hierarchy of related classes:

Class Data
IDCard ID number
CallingCard Card number, PIN
DriverLicense Expiration year

Write declarations for each of the subclasses. For each subclass, supply private instance variables. Leave the
bodies of the constructors and the format methods blank for now.

bj5_fm_06.indd 12 10/24/12 6:23 PM


Acknowledgments xiii

Acknowledgments
Many thanks to Beth Lang Golub, Don Fowley, Elizabeth Mills, Katherine Willis,
Jenny Welter, Wendy Ashenberg, Lisa Gee, Kevin Holm, and Tim Lindner at John
Wiley & Sons, and Vickie Piercey at Publishing Services for their help with this proj-
ect. An especially deep acknowledgment and thanks goes to Cindy Johnson for her
hard work, sound judgment, and amazing attention to detail.
I am grateful to Suchindran Chatterjee, Arizona State University, Jose Cordova,
University of Louisiana, Udayan Das, DeVry University, James Johnson, Aaron
Keen, California Polytechnic State University San Luis Obispo, Norm Krumpe,
Miami University Ohio, Kathy Liszka, University of Akron, Kathleen O’Brien, San
Jose State University, Donald Smith, Columbia College, Mark Thomas, University of
Cincinnati, Laurie White, Mercer University, Brent Wilson, George Fox University,
and David Woolbright, Columbus State University, for their excellent contributions
to the supplementary materials.
Many thanks to the individuals who reviewed the manuscript for this edition,
made valuable suggestions, and brought an embarrassingly large number of errors
and omissions to my attention. They include:

Eric Aaron, Wesleyan University Guy Helmer, Iowa State Bill Mongan, Drexel University
James Agnew, Anne Arundel University George Novacky, University
Community College Ed Holden, Rochester Institute of Pittsburgh
Greg Ballinger, Miami Dade of Technology Mimi Opkins, California State
College Steven Janke, Colorado College University Long Beach
Jon Beck, Truman State Mark Jones, Lock Haven Derek Pao, City University of
University University of Pennsylvania Hong Kong
Matt Boutell, Rose-Hulman Dr. Mustafa Kamal, University of Katherine Salch, Illinois Central
Institute of Technology Central Missouri College
John Bundy, DeVry University Gary J. Koehler, University of Javad Shakib, DeVry University
Chicago Florida Charlie Shu, Franklin University
Michael Carney, Finger Lakes Ronald Krawitz, DeVry Joslyn A. Smith, Florida
Community College University International University
Christopher Cassa, Norm Krumpe, Miami Robert Strader, Stephen F. Austin
Massachusetts Institute of University Ohio State University
Technology Jim Leone, Rochester Institute Jonathan S. Weissman, Finger
Dr. Suchindran S. Chatterjee, of Technology Lakes Community College
Arizona State University Kevin Lillis, St. Ambrose Katherine H. Winters, University
Tina Comston, Franklin University of Tennessee Chattanooga
University Darren Lim, Siena College Tom Wulf, University of
Lennie Cooper, Miami Dade Hong Lin, DeVry University Cincinnati
College Kuber Maharjan, Purdue Qi Yu, Rochester Institute of
Sherif Elfayoumy, University of University College of Technology
North Florida Technology at Columbus
Henry A Etlinger, Rochester Patricia McDermott-Wells,
Institute of Technology Florida International
University

bj5_fm_06.indd 13 11/9/12 11:56 AM


xiv Acknowledgments

Every new edition builds on the suggestions and experiences of prior reviewers and
users. I am grateful for the invaluable contributions these individuals have made:

Tim Andersen, Boise State University Elliotte Harold Kai Qian, Southern Polytechnic
Ivan Bajic, San Diego State University Eileen Head, Binghamton University State University
Ted Bangay, Sheridan Institute Cecily Heiner, University of Utah Cyndi Rader, Colorado School
of Technology Brian Howard, Depauw University of Mines
Ian Barland, Radford University Lubomir Ivanov, Iona College Neil Rankin, Worcester Polytechnic
George Basham, Franklin University Norman Jacobson, University of Institute
Sambit Bhattacharya, Fayetteville California, Irvine Brad Rippe, Fullerton College
State University Curt Jones, Bloomsburg University Pedro I. Rivera Vega, University
Rick Birney, Arizona State University Aaron Keen, California Polytechnic of Puerto Rico, Mayaguez
Paul Bladek, Edmonds Community State University, San Luis Obispo Daniel Rogers, SUNY Brockport
College Mugdha Khaladkar, New Jersey Chaman Lal Sabharwal, Missouri
Joseph Bowbeer, Vizrea Corporation Institute of Technology University of Science and
Timothy A. Budd, Oregon State Elliot Koffman, Temple University Technology
University Kathy Liszka, University of Akron John Santore, Bridgewater State
Robert P. Burton, Brigham Young Hunter Lloyd, Montana State College
University University Carolyn Schauble, Colorado State
Frank Butt, IBM Youmin Lu, Bloomsburg University University
Jerry Cain, Stanford University John S. Mallozzi, Iona College Brent Seales, University of Kentucky
Adam Cannon, Columbia University John Martin, North Dakota State Christian Shin, SUNY Geneseo
Nancy Chase, Gonzaga University University Jeffrey Six, University of Delaware
Archana Chidanandan, Rose-Hulman Jeanna Matthews, Clarkson University Don Slater, Carnegie Mellon
Institute of Technology Scott McElfresh, Carnegie Mellon University
Vincent Cicirello, The Richard University Ken Slonneger, University of Iowa
Stockton College of New Jersey Joan McGrory, Christian Brothers Donald Smith, Columbia College
Teresa Cole, Boise State University University Stephanie Smullen, University of
Deborah Coleman, Rochester Institute Carolyn Miller, North Carolina Tennessee, Chattanooga
of Technology State University Monica Sweat, Georgia Institute
Jose Cordova, University of Louisiana, Sandeep R. Mitra, State University of Technology
Monroe of New York, Brockport Peter Stanchev, Kettering University
Valentino Crespi, California State Teng Moh, San Jose State University Shannon Tauro, University of
University, Los Angeles John Moore, The Citadel California, Irvine
Jim Cross, Auburn University Jose-Arturo Mora-Soto, Jesica Ron Taylor, Wright State University
Russell Deaton, University Rivero-Espinosa, and Julio-Angel Russell Tessier, University of
of Arkansas Cano-Romero, University Massachusetts, Amherst
Geoffrey Decker, Northern Illinois of Madrid Jonathan L. Tolstedt, North Dakota
University Faye Navabi, Arizona State University State University
H. E. Dunsmore, Purdue University Parviz Partow-Navid, California State David Vineyard, Kettering University
Robert Duvall, Duke University University, Los Angeles Joseph Vybihal, McGill University
Eman El-Sheikh, University of Kevin O’Gorman, California Xiaoming Wei, Iona College
West Florida Polytechnic State University, San Todd Whittaker, Franklin University
John Fendrich, Bradley University Luis Obispo Robert Willhoft, Roberts Wesleyan
David Freer, Miami Dade College Michael Olan, Richard Stockton College
John Fulton, Franklin University College Lea Wittie, Bucknell University
David Geary, Sabreware, Inc. Kevin Parker, Idaho State University David Womack, University of Texas
Margaret Geroch, Wheeling Jesuit Jim Perry, Ulster County Community at San Antonio
University College David Woolbright, Columbus State
Ahmad Ghafarian, North Georgia Cornel Pokorny, California University
College & State University Polytechnic State University, Catherine Wyman, DeVry University
Rick Giles, Acadia University San Luis Obispo Arthur Yanushka, Christian Brothers
Stacey Grasso, College of San Mateo Roger Priebe, University of Texas, University
Jianchao Han, California State Austin Salih Yurttas, Texas A&M University
University, Dominguez Hills C. Robert Putnam, California State
Lisa Hansen, Western New England University, Northridge
College

bj5_fm_06.indd 14 11/6/12 9:23 PM


CONTENTS

Preface iii
Special Features xxii

Chapter 1 Introduction 1
1.1 Computer Programs 2
1.2 The Anatomy of a Computer 3
1.3 The Java Programming Language 6
1.4 Becoming Familiar with Your Programming Environment 8
1.5 Analyzing Your First Program 12
1.6 Errors 15
1.7 Problem Solving: Algorithm Design 16

Chapter 2 Using Objects 33

2.1 Objects and Classes 34


2.2 Variables 36
2.3 Calling Methods 43
2.4 Constructing Objects 48
2.5 Accessor and Mutator Methods 50
2.6 The API Documentation 52
2.7 Implementing a Test Program   55
2.8 Object References   57
2.9 Graphical Applications   61
2.10 Ellipses, Lines, Text, and Color   66

Chapter 3 Implementing Classes 81

3.1 Instance Variables and Encapsulation 82


3.2 Specifying the Public Interface of a Class 86
3.3 Providing the Class Implementation 93
3.4 Unit Testing   102
3.5 Problem Solving: Tracing Objects 105
3.6 Local Variables 107
3.7 The this Reference 109
3.8 Shape Classes   112

xv

bj5_fm_05.indd 15 10/18/12 3:25 PM


xvi Contents

Chapter 4 Fundamental Data Types 131


4.1 Numbers 132
4.2 Arithmetic 139
4.3 Input and Output 147
4.4 Problem Solving: First Do it By Hand 154
4.5 Strings 156

Chapter 5 Decisions 179


5.1 The if Statement 180
5.2 Comparing Values 186
5.3 Multiple Alternatives 196
5.4 Nested Branches 200
5.5 Problem Solving: Flowcharts 207
5.6 Problem Solving: Selecting Test Cases   210
5.7 Boolean Variables and Operators 213
5.8 Application: Input Validation 218

Chapter 6 Loops 241


6.1 The while Loop 242
6.2 Problem Solving: Hand-Tracing 249
6.3 The for Loop 254
6.4 The do Loop 262
6.5 Application: Processing Sentinel Values 263
6.6 Problem Solving: Storyboards 269
6.7 Common Loop Algorithms 272
6.8 Nested Loops 279
6.9 Application: Random Numbers and Simulations 283
6.10 Using a Debugger   286

Chapter 7 Arrays and Array Lists 311

7.1 Arrays 312


7.2 The Enhanced for Loop 321
7.3 Common Array Algorithms 322
7.4 Problem Solving: Adapting Algorithms 331
7.5 Problem Solving: Discovering Algorithms by Manipulating
Physical Objects 336
7.6 Two-Dimensional Arrays 340

bj5_fm_05.indd 16 10/18/12 3:25 PM


Contents xvii

7.7 Array Lists 347


7.8 Regression Testing   356

Chapter 8 Designing Classes 379

8.1 Discovering Classes 380


8.2 Designing Good Methods 381
8.3 Problem Solving: Patterns for Object Data 390
8.4 Static Variables and Methods 395
8.5 Packages 400
8.6 Unit Test Frameworks 407

Chapter 9 Inheritance 421


9.1 Inheritance Hierarchies 422
9.2 Implementing Subclasses 426
9.3 Overriding Methods 431
9.4 Polymorphism 437
9.5 Object: The Cosmic Superclass 448

Chapter 10 Interfaces 463

10.1 Using Interfaces for Algorithm Reuse 464


10.2 Working with Interface Variables 471
10.3 The Comparable Interface 473
10.4 Using Interfaces for Callbacks 477
10.5 Inner Classes 481
10.6 Mock Objects 483
10.7 Event Handling 484
10.8 Building Applications with Buttons 490
10.9 Processing Timer Events 494
10.10 Mouse Events 497

Chapter 11 Input/Output and Exception Handling 513

11.1 Reading and Writing Text Files 514


11.2 Text Input and Output 519
11.3 Command Line Arguments 527
11.4 Exception Handling 534
11.5 Application: Handling Input Errors 545

bj5_fm_05.indd 17 10/18/12 3:25 PM


xviii Contents

Chapter 12 Object-Oriented Design 559

12.1 Classes and Their Responsibilities 560


12.2 Relationships Between Classes 563
12.3 Application: Printing an Invoice 569

Chapter 13 RECURSION 587

13.1 Triangle Numbers 588


13.2 Recursive Helper Methods 596
13.3 The Efficiency of Recursion 598
13.4 Permutations 603
13.5 Mutual Recursion 608
13.6 Backtracking 614

Chapter 14 Sorting and searching 629

14.1 Selection Sort 630


14.2 Profiling the Selection Sort Algorithm 633
14.3 Analyzing the Performance of the Selection Sort Algorithm 636
14.4 Merge Sort 641
14.5 Analyzing the Merge Sort Algorithm 644
14.6 Searching 648
14.7 Problem Solving: Estimating the Running Time of an Algorithm 653
14.8 Sorting and Searching in the Java Library 658

Chapter 15 The Java Collections Framework 671

15.1 An Overview of the Collections Framework 672


15.2 Linked Lists 675
15.3 Sets 681
15.4 Maps 686
15.5 Stacks, Queues, and Priority Queues 692
15.6 Stack and Queue Applications 695

Chapter 16 Basic Data Structures 715

16.1 Implementing Linked Lists 716


16.2 Implementing Array Lists 731
16.3 Implementing Stacks and Queues 735
16.4 Implementing a Hash Table 741

bj5_fm_05.indd 18 10/18/12 3:25 PM


Contents xix

Chapter 17 tree Structures 761

17.1 Basic Tree Concepts 762


17.2 Binary Trees 766
17.3 Binary Search Trees 771
17.4 Tree Traversal 780
17.5 Red-Black Trees 786
17.6 Heaps 793
17.7 The Heapsort Algorithm 804

Chapter 18 Generic classes 819

18.1 Generic Classes and Type Parameters 820


18.2 Implementing Generic Types 821
18.3 Generic Methods 825
18.4 Constraining Type Parameters 827
18.5 Type Erasure 831

Chapter 19 Graphical User Interfaces 841

19.1 Layout Management 842


19.2 Processing Text Input 846
19.3 Choices 852
19.4 Menus 863
19.5 Exploring the Swing Documentation 869

Chapter 20 Streams and Binary Input/Output 881

20.1 Readers, Writers, and Streams 882


20.2 Binary Input and Output 883
20.3 Random Access 887
20.4 Object Streams 893

Chapter 21 Multithreading (WEB ONLY)

21.1 Running Threads


21.2 Terminating Threads
21.3 Race Conditions
21.4 Synchronizing Object Access
21.5 Avoiding Deadlocks
21.6 Application: Algorithm Animation

bj5_fm_05.indd 19 10/18/12 3:25 PM


Discovering Diverse Content Through
Random Scribd Documents
THE SOLDIER. See

THE OUTER LIMITS.

SOLDIER OF FORTUNE. See

COMBAT!

SOLEDAD CROSSING. See

HAVE GUN—WILL TRAVEL.

THE SOLICITOUS GUARD. See

LA GUARDA CUIDADOSA.

SOLID FOUNDATION. See

DEATH VALLEY DAYS.

THE SOLID GOLD CAVITY. See

DEATH VALLEY DAYS.

THE SOLID GOLD CRAB. See

S. A. 7.

THE SOLID GOLD DOG TAG. See

THE MANY LOVES OF DOBIE GILLIS.

THE SOLID GOLD GIRL. See

DESTRY.
THE SOLID TIN COYOTE. Warner Bros.
Pictures. 1 reel, sd., color, 35 mm.
(Looney tunes) Technicolor.
© Warner Bros. Pictures, Inc.;
10Feb66; LP32626.

SOLIDS IN THE WORLD AROUND US. Cenco


Educational Film Co. 15 min., sd.,
color. 16 mm. (Discovering solids)
© Cenco Educational Film Co., division
of Cenco Instruments Corp.;
5Oct61 (in notice: 1958); MP12546.

SOLIDS, LIQUIDS, AND GASES. McGraw-Hill


Book Co. 10 min., sd., color &
b&w, 16 mm. A Young America production.
Rev. © McGraw-Hill Book Co.,
Inc.; 30Jun61; MP12287.

SOLITARY REFINEMENT. Paramount Pictures


Corp. 6 min., sd., color, 35 mm.
(A Modern Madcap) © Paramount
Pictures Corp.; 1Sep65; LP31984.

SOLITUDE. See

CAMERA 3.

SOLO FOR B-FLAT CLARINET. See

BEN CASEY.

BREAKING POINT.

SOLOMON. See
JOHNNY STACCATO.

SOLOMON'S CHOICE. See

DR. KILDARE.

SOLOMON'S GLORY. See

DEATH VALLEY DAYS. No. 833.

SOLUBILITY PRODUCT. Yale University.


7 min., sd., color, 16 mm. (YF-237)
© Yale University; 8Sep64; MP14912.

SOLUTION, EVAPORATION, AND CRYSTALLIZATION.


Yale University. 3 min., sd.,
color, 16 mm. (Physical and chemical
changes) (YF-239) © Yale University;
8Sep64; MP14887.

SOLUTION OF EQUATIONS BEYOND THE SECOND


DEGREE. See

ADVANCED ALGEBRA.

SOLUTIONS OF ALKALI METALS IN LIQUID


AMMONIA. Yale University. 24 min.,
sd., color, 16 mm. (YF-231) © Yale
University; 8Sep64; MP14898.

SOLUTIONS OF ALKALI METALS IN LIQUID


AMMONIA. Yale University. 5 min.,
sd., color, 16 mm. (YF-232)
Abridged. © Yale University; 8Sep64;
MP14893.
SOLVING PROBLEMS WITH THE QUADRATIC
FORMULA. See

ADVANCED ALGEBRA.

SOLVING THE SPACE SURVIVAL PROBLEMS. See

FIRST MEN INTO SPACE: SOLVING THE


SPACE SURVIVAL PROBLEMS.

SOME BEGINNINGS OF SOCIAL PSYCHIATRY.


President & Fellows of Harvard
College. Made by Edward A. Mason.
14 min., sd., b&w, 16 mm. © President
& Fellows of Harvard College;
24Jan66; MP15839.

SOME CRUST & 6 OTHERS. See

MACK AND MYER FOR HIRE.

SOME DOGS HAVE THE BIGGEST MOUTHS. See

GRINDL.

SOME DOORS ARE SLAMMING. See

DR. KILDARE.

SOME FRIENDS OF ADLAI STEVENSON. See

CBS NEWS SPECIAL REPORT.

SOME OF THE BOYS. Dennis S. Johnson.


34 min., sd., b&w, 16 mm. NM:
new cinematographic treatment.
© Dennis S. Johnson; 16Aug65; MP15732.

SOME OF THE PEOPLE, SOME OF THE


TIME. See

ROUTE 66.

SOME TALES FOR HALLOWEEN. See

DR. KILDARE.

SOME TEARS FALL DRY. See

THE GALLANT MEN.

SOME TECHNIQUES OF TISSUE SECTION PREPARATION


IN THE PATHOLOGY LABORATORY.
National Committee for Careers in
Medical Technology. 29 min., sd.,
color, 16 mm. © National Committee
for Careers in Medical Technology;
9Sep59; MP9892.

SOME WEEKS ARE ALL MONDAYS. See

ARREST AND TRIAL.

SOMEBODY DOWN HERE HATES ME. See

THE RED SKELTON HOUR.

SOMEBODY HAS TO PLAY CLEOPATRA. See

THE DICK VAN DYKE SHOW.


SOMEBODY LOVES YOU. See

JOHNNY MIDNIGHT.

SOMEBODY PLEASE HELP ME. See

GENERAL ELECTRIC THEATER.

SOMEBODY TO REMEMBER. See

THE FUGITIVE.

SOMEBODY UP THERE SHOULD STAY


THERE. See

THE RED SKELTON HOUR.

SOMEBODY UPSTAIRS. See

FAMILY AFFAIR.

SOMEBODY'S BEEN SLEEPING IN MY BED. See

MICKEY.

SOMEBODY'S WAITING. See

THE DICK POWELL SHOW.

THE SOMEDAY MAN. See

CHECKMATE.

SOMEONE IS WATCHING. See

THE DONNA REED SHOW.


SOMEONE LIKE YOU. Girl Scouts of the
United States of America. Made by
Vision Associates. 13 min., sd.,
color, 16 mm. © Girl Scouts of the
United States of America; 10Apr66;
MP16237.

SOMEONE WHO MAKES ME FEEL BEAUTIFUL. See

RUN FOR YOUR LIFE.

SOMEONE'S STEALING FROM YOU. June 7


Productions. 11 min., sd., b&w,
16 mm. © June 7 Productions, Inc.;
6Nov67; MP17680.

SOMETHING ABOUT LEE WILEY. See

BOB HOPE PRESENTS THE CRYSLER THEATRE.

SOMETHING FOR CHARITY. See

INVESTIGATORS.

SOMETHING FOR NOTHING. See

IRONSIDE.

SOMETHING FOR THE GIRLS. Girl Scouts


of the United States of America.
28 min., sd., color, 16 mm. © Girl
Scouts of the United States of America;
15Jan62; MP12727.

SOMETHING FOR THE GIRLS. See


EAST SIDE/WEST SIDE.

SOMETHING FOR UNCLE BEN. James H.


Matthews & Co., Canada. Made by
William G. Beal, Inc. 27 min., sd.,
Visatone color, 16 mm. Appl. author:
William G. Beal. © James H. Matthews
& Co., Bronze Division; 15Jul60;
LP17429.

SOMETHING FUNNY HAPPENED ON THE WAY


TO THE ALTAR. See

THE DONNA REED SHOW.

SOMETHING HURT, SOMETHING WILD. See

BONANZA.

SOMETHING JUST FOR YOU. Chevrolet


Motor Division. Made by Jam Handy
Organization. 61 sec., sd., Eastman
color, 35 mm. © Chevrolet Division
of General Motors Corp.; 17May62;
MU7181.

SOMETHING NICE FOR SOL. See

CAR 54, WHERE ARE YOU?

SOMETHING OF IMPORTANCE. See

DR. KILDARE.

SOMETHING OLD, SOMETHING NEW. See


DR. KILDARE.

SOMETHING PRETTY. See

TALES OF WELLS FARGO.

SOMETHING TO DIE FOR. See

SHOTGUN SLADE.

SOMETHING TO WORK FOR. Roundtable


Productions. 30 min., sd., color,
16 mm. © Roundtable Productions,
Inc.; 21Jan66; LP32417.

SOMETHING WILD. Prometheus Enterprises.


Released by United Artists
Corp. 112 min., sd., b&w, 35 mm.
Based on the novel Mary Ann, by Alex
Karmel. © Prometheus Enterprises,
Inc.; 20Dec61; LP21508.

THE SOMETIME GAMBLER. See

LARAMIE.

A SOMETIMES DISTANT SPRING. See

DR. KILDARE.

SOMETIMES HARMONIOUS, SOMETIMES NOT.


University of Georgia. 29 min.,
sd., b&w, 16 mm. (Basic issues of
man) © University of Georgia;
1Jun61; MP11822.
SOMEWHAT LOWER THAN THE ANGELS. See

ARREST AND TRIAL.

SOMEWHERE GEORGE IS CALLING. See

PLEASE DON'T EAT THE DAISIES.

SOMEWHERE THERE'S MUSIC. See

HAWAIIAN EYE.

THE SON. See

LAWMAN.

SON OF A BOSS. See

ROOM FOR ONE MORE.

SON OF A GUNFIGHTER. Metro-Goldwyn-Mayer.


92 min., sd., color, 35 mm.
Metrocolor. CinemaScope. Produced
in association with Zurbano Films.
© Metro-Goldwyn-Mayer, Inc.; 31Dec64;
LP31994.

SON OF A GUNMAN. See

CISCO KID.

THE SON OF CAPTAIN BLOOD. Paramount


Pictures Corp. 95 min., sd., color,
35 mm. Technicolor. CinemaScope.
Based on characters created by Rafael
Sabatini. © Paramount Pictures Corp.;
31Dec63; LP27747.

SON OF FLUBBER. Walt Disney Productions.


Released by Buena Vista Distribution
Co. 102 min., sd., b&w,
35 mm. Based on a story by Samuel W.
Taylor & the Danny Dunn books. © Walt
Disney Productions; 1Dec62; LP23502.

SON OF FOOTBALL. See

HAMM'S BEER COMMERCIALS.

SON OF HASHIMOTO. Terrytoons. Released


by Twentieth Century-Fox Film
Corp. 7 min., sd., Color by DeLuxe,
35 mm. (A Terrytoon cartoon)
CinemaScope. © Terrytoons, a division
of CBS Films, Inc.; 12Apr61; LP19487.

SON OF LAFE RETURNS. See

THE BEVERLY HILLBILLIES.

SON OF THE MYSTIC NILE. See

THE REAL MCCOYS. 58.

A SONG CALLED REVENGE. See

BOB HOPE PRESENTS THE CRYSLER THEATRE.

THE SONG FESTERS. See

THE ANDY GRIFFITH SHOW.


SONG FOR DYING. See

GUNSMOKE.

SONG FOR SALE. See

THIS IS ALICE.

SONG IN THE DARK. See

BONANZA.

SONG OF LONDON. British Travel Assn.


Made by Rayant Pictures. Released
by Columbia Pictures Corp. 20 min.,
sd., color, 35 mm. (Musical travelark,
no. 31) Technicolor. © British
Travel Assn.; 16Dec63; LP27973.

SONG OF SONGS. See

THE DETECTIVES. 2862.

SONG OF THE DRUMS. See

MUSIC OF THE NEW WORLD: SONG OF THE DRUMS.

SONG OF THE GUILTY HEART. See

THE DETECTIVES.

SONG PLUGGING. See

DECEMBER BRIDE.
A SONG WITH AN ORANGE IN IT. See

THE ROBERT HERRIDGE THEATER.

SONG WITHOUT END. Goetz-Vidor Pictures.


Released by Columbia Pictures Corp.
130 min., sd., Eastman color by Pathé,
35 mm. CinemaScope. © Goetz-Vidor Pictures;
1Sep60; LP17293.

THE SONG WRITER. See

LIFE OF RILEY.

SONGS MY MOTHER TAUGHT ME. See

STAGECOACH—WEST.

THE SONGS OF HAROLD ARLEN. See

THE TWENTIETH CENTURY.

THE SONIC BOOMER. Hal Seeger.


5 min., sd., color, 16 mm. (Batfink, no. 4)
© Hal Seeger; 20Jan67; LU3449.

SONNY LISTON VS. ... See

TURN OF THE CENTURY FIGHTS.

SONNY RAY VS. ... See

TURN OF THE CENTURY FIGHTS.

THE SONNY ROSEN STORY. See


THE LAWLESS YEARS.

SONNY'S LUCKY DREAM (How to chase decay away)


Ohio State University. 12 min., sd., color, 16 mm.
From an original play written & performed by the
Women's Auxiliary of the Columbus Dental Society.
© Ohio State University, Dept. of Photography &
Cinema; 1Jun68; MP18481.

SONS AND LOVERS.


Twentieth Century-Fox Productions.
Released by Twentieth Century-Fox Film Corp.
103 min., sd., b&w, 35 mm. CinemaScope.
Based on the novel by D. H. Lawrence.
© Twentieth Century-Fox Film Corp.;
20Aug60; LP17060.

THE SONS OF AARON MURDOCK. See

HAVE GUN—WILL TRAVEL.

THE SONS OF DON ANTONIO. See

MAN FROM BLACKHAWK.

THE SONS OF KATIE ELDER. Hal B. Wallis.


Released by Paramount Pictures Corp.
121 min., sd., color, 35 mm.
Technicolor. Panavision.
Based on a story by Talbot Jennings.
© Paramount Pictures Corp.,
Hal B. Wallis, Joseph H. Hazen & John Wayne;
24Jun65; LP30968.

THE SOONER. See


THE OUTLAWS.

SOPHIA. See

I SPY.

SOPHIE'S ENGAGEMENT. See

LOVE AND MARRIAGE. Production no. 8.

SOPHOCLES THE HYENA.


McGraw-Hill Book Co. Made by Crawley Films.
12 min., sd., color, 16 mm.
(Storybook series) Eastman color.
Based on the book by Lilian Moore & Kurt Werth.
© McGraw-Hill Book Co., Inc.; 31Dec63; MP14807.

THE SORCERER. See

ALCOA PRESENTS ONE STEP BEYOND.

THE SORCERER'S APPRENTICE.


Weston Woods Studios. 14 min., sd., color,
16 mm. Appl. author: Morton Schindel.
© Weston Woods Studios, Inc.;
15Dec63; LP26974.

SOROFINO'S TREASURE. See

THE RICHARD BOONE SHOW.

THE SORORITY GIRL. See

THE REAL MCCOYS.

SORORITY HOUSE. See


MISTER ED.

SORRY SAFARI. Metro-Goldwyn-Mayer.


7 min., sd., color, 35 mm. (Tom & Jerry)
Metrocolor. © Metro-Goldwyn-Mayer, Inc.;
31Dec62; LP23620.

SORT/MERGE. International Business Machines Corp.


30 min., sd., b&w. Videotape (1 in.)
(OS facilities/OS interface)
© International Business Machines Corp.;
1Sep68; MP19416.

THE SORT OF DO-IT-YOURSELF DREADFUL AFFAIR. See

THE MAN FROM U.N.C.L.E.

A SORT OF FALLING IN LOVE. See

DR. KILDARE.

SORTING. Thorne Films.


4 min., si., color, Super-8 cartridge.
(Elementary science series, no. 181)
© Thorne Films, Inc.; 1Jun68; MP18658.

SO'S YOUR OLD MAN. See

THE ROARING 20'S.

THE SOUL KILLER. See

DR. KILDARE.

SOUND AND HOW IT TRAVELS.


Encyclopaedia Britannica Films.
11 min., sd., color, 16 mm. Eastman color.
© Encyclopaedia Britannica Films, Inc.;
28Feb63; MP13384.

SOUND FOR BEGINNERS.


Coronet Instructional Films.
10 min., sd., b&w, 16 mm.
© Coronet Instructional Films,
a division of Esquire, Inc.;
30Sep60; MP11103.

THE SOUND OF A DRUM. See

CIMARRON STRIP.

THE SOUND OF A FARAWAY HILL. See

DR. KILDARE.

THE SOUND OF A HALL. See

NEW YORK PHILHARMONIC YOUNG PEOPLE'S CONCERTS.

THE SOUND OF ANGELS. See

THE LLOYD BRIDGES SHOW.

SOUND OF ARIZONA. Twentieth Century-Fox Film Corp.


1 reel, sd., Color by DeLuxe, 35 mm.
(A Movietone adventure) CinemaScope.
© Twentieth Century-Fox Film Corp.;
1Nov61; LP21036.

A SOUND OF BELLS. See


LARAMIE.

SOUND OF DRUMS. See

BONANZA.

THE SOUND OF GUNFIRE. See

RENDEZVOUS.

THE SOUND OF LAUGHTER. See

BEN CASEY.

THE SOUND OF MILES DAVIS. See

THE ROBERT HERRIDGE THEATER.

SOUND OF MURDER. See

THE LAST SHOT YOU HEAR.

THE SOUND OF MUSIC. Argyle Enterprises.


Released by Twentieth Century-Fox Film Corp.
172 min., sd., color, 35 mm.
Color by DeLuxe. Todd-AO.
From the stage musical with music & lyrics by
Richard Rodgers & Oscar Hammerstein II;
book by Howard Lindsay & Russel Crouse.
© Argyle Enterprises & Twentieth Century-Fox
Film Corp.; 2Mar65; LP30289.

THE SOUND OF NERVOUS LAUGHTER. See

CHECKMATE.
THE SOUND OF ONE HAND CLAPPING. See

BEN CASEY.

THE SOUND OF POWER. J. I. Case Co.


Made by Jam Handy Organization.
26 min., sd., color, 16 mm. Ektachrome.
© Jam Handy Organization, Inc.;
15Feb65; MU7536.

SOUND OF QUACKING. See

GILLIGAN'S ISLAND.

SOUND OF TERROR. See

LAREDO.

THE SOUND OF THE TRUMPETS OF CONSCIENCE FALLS


DEAFLY ON A BRAIN THAT HOLDS ITS EARS. See

THE DICK VAN DYKE SHOW.

SOUND RECORDING FOR MOTION PICTURES.


Indiana University. Made by Audio Visual
Center. 10 min., sd., color, 16 mm.
© Indiana University; 10Jan60
(in notice: 1959); MP11684.

SOUND WAVES AND STARS: THE DOPPLER EFFECT.


Film Associates of California.
13 min., sd., color, 16 mm. Eastman color.
© Film Associates of California;
15May64; MP14328.

SOUNDS AND SILENCES. See


THE TWILIGHT ZONE.

SOUNDS AROUND US. Cenco Instruments Corp.


Made by Cenco Educational Films.
10 min., sd., color, 16 mm. Eastman color.
© Cenco Instruments Corp.; 12Nov63; MP14679.

THE SOUNDS OF COURAGE. Columbia Broadcasting System.


30 min., sd., b&w, 16 mm.
© Columbia Broadcasting System, Inc.;
31Jul65; MP19103.

THE SOUNDS OF LANGUAGE.


Modern Language Assn. of America.
Made by Reid H. Ray Film Industries.
Released by Teaching Film Custodians.
31 min., sd., b&w, 16 mm. (Principles and
methods of teaching a second language)
Appl. author: Theodore B. Karp.
© Teaching Film Custodians, Inc.;
1Mar62 (in notice: 1961); MP12182.

SOUP AND FISH. See

THE MANY LOVES OF DOBIE GILLIS.

SOUR ANNIE. See

OVERLAND TRAIL.

SOUR GRIPES. Paramount Pictures Corp.


6 min., sd., color, 35 mm.
(Modern Madcap cartoon)
© Paramount Pictures Corp.; 1Sep63; LP26346.
THE SOUR MILK FUND. See

MR. LUCKY. 3916.

SOUR NOTE. See

KENTUCKY JONES.

SOURCE OF INFORMATION. See

SAINTS AND SINNERS.

SOUTH AFRICA TODAY.


Twentieth Century-Fox Film Corp.
1 reel, sd., Color by DeLuxe, 35 mm.
(Movietone adventure) CinemaScope.
© Twentieth Century-Fox Film Corp.;
14Dec61; LP21037.

SOUTH AMERICA. International Film Foundation.


28 min., sd., color, 16 mm.
© International Film Foundation, Inc.;
4Jun60; MP16388.

SOUTH AMERICA. McGraw-Hill Book Co.


18 min., sd., color, 16 mm.
(Our Latin American neighbors series)
© McGraw-Hill Book Co., Inc.;
15Aug62; MP12582.

SOUTH AMERICAN HIGHLIGHTS


(South America highlights)
Field Communications Corp. Made by GFP.
25 min., sd., color, 16 mm.
© GFP, Inc.; 15Sep66; MP16822.
SOUTH OF HORROR FLATS. See

DEATH VALLEY DAYS. 625.

SOUTH OF THE BORDER. See

THE TEXAN.

THE TYCOON.

SOUTH PACIFIC POTLUCK. See

MISTER MAGOO.

THE SOUTH: ROOTS OF URBAN CRISIS.


Encyclopaedia Britannica Educational Corp.
27 min., sd., color, 16 mm.
© Encyclopaedia Britannica Educational Corp.;
28Mar69; MP19197.

SOUTH WIND. See

GUNSMOKE.

THE SOUTHEAST, CHALLENGE AND CHANGE.


McGraw-Hill Book Co. Made by A.C.I, Productions.
14 min., sd., color, 16 mm.
(United States geography, social studies series,
set 2) © McGraw-Hill Book Co.; 15Sep65; MP15505.

SOUTHERN ACCENTS, NORTHERN GHETTOS.


American Broadcasting Companies.
49 min., sd., b&w, 16 mm.
© American Broadcasting Companies, Inc.;
27Jun67; MP18057.
SOUTHERN AFRICA: INDUSTRY AND AGRICULTURE.
McGraw-Hill Book Co. Made by A.C.I. Productions.
16 min., sd., color, 16 mm. (Africa series)
© McGraw-Hill, Inc.; 30Dec66; MP16607.

THE SOUTHERN BAPTIST HOUR.


National Broadcasting Co.
Approx. 59 min. each, sd., color, 16 mm.
Produced in association with Southern Baptist
Convention's Radio & Television Commission.
© National Broadcasting Co., Inc.

The inheritance. Telecast: May 23, 1965.


© 21Apr65; MP15387.

SOUTHERN CAL OUTLASTS STANFORD. See

SPORTFOLIO.

SOUTHERN FRIED HOSPITALITY. Universal-International.


Released by Universal Film Exchange.
1 reel, sd., Technicolor, 35 mm.
(A Walter Lantz Woody Woodpecker cartune)
© Universal-International; 20Nov60; LP21336.

THE SOUTHERN NEW ENGLAND REGION: NEW INDUSTRIES.


McGraw-Hill Book Co.
13 min., sd., color, 16 mm.
(United States geography, social studies series)
Eastman color. © McGraw-Hill Book Co., Inc.;
21May63; MP13283.

THE SOUTHWEST: LAND OF PROMISE.


McGraw-Hill Book Co.
13 min., sd., color, 16 mm.
(United States geography, social studies series)
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookluna.com

You might also like