The cover theme for the DEITEL® HOW TO PROGRAM SERIES emphasizes social consciousness issues such as
going green, clean energy, recycling, sustainability and more. Within the text, in addition to conventional program-
ming exercises, we’ve included our Making a Difference exercise set to raise awareness of issues such as global
warming, population growth, affordable healthcare, accessibility, privacy of electronic records and more. In this
book, you’ll use Java to program applications that relate to these issues. We hope that what you learn in
Java How to Program, 9/e will help you to make a difference.
Night at the Niagara Falls—Ontario and New York
The Niagara Falls waterfalls straddle the border between Ontario, Canada and upstate
New York in the United States. Horseshoe Falls is located on the Canadian side, and
American Falls and Bridal Veil Falls are on the U.S. side.
The Niagara Falls are an awe-inspiring, world-class tourist attraction, and a
significant source of hydroelectric power. On average, nearly four million cubic feet
of water falls over the crest line each minute. The U.S. and Canada harness the natu-
ral energy from Niagara Falls to generate clean, inexpensive electricity. The first
hydroelectric generating station on the Niagara River was built in 1881. Its electricity
powered local mills and street lights. The Niagara Redevelopment Act, passed by
the U.S. Congress in 1957, gave the New York Power Authority the right to develop
the U.S. Niagara River hydroelectric power plants. The Niagara Falls hydroelectric project began operating in 1961.
Up to 375,000 gallons of water per second is diverted from the river through conduits to the power plants. The
water spins turbines that power generators that convert the mechanical energy into electrical energy. Today,
the project generates 2.4 million kilowatts, which can power 24 million 100-watt light bulbs simultaneously. For
further information visit:
en.wikipedia.org/wiki/Niagra_falls
www.nypa.gov/facilities/niagara.htm
www.niagarafrontier.com/power.html
About Deitel & Associates, Inc.
Deitel & Associates, Inc., is an internationally recognized authoring and corporate training organization. The com-
pany offers instructor-led courses delivered at client sites worldwide on programming languages and other software
topics such as Java™, C#®, Visual Basic®, Visual C++®, C++, C, Objective-C®, XML®, Python®, JavaScript, object
technology, Internet and web programming, and Android and iPhone app development. The company’s clients in-
clude many of the world’s largest companies, as well as government agencies, branches of the military and academic
institutions. To learn more about Deitel Pearson Higher Education publications and Dive Into® Series corporate
training, e-mail or visit www.deitel.com/training/. Follow Deitel on Facebook® at
www.deitel.com/deitelfan/ and on Twitter® @deitel.
,
, Deitel® Series Page
How To Program Series (continued)
Java™ How to Program, 9/E Simply Visual Basic 2008: An App-Driven
Tutorial Approach, 3/E
Java™ How to Program, Late Objects Version, 8/E
Visual Basic® 2010 How to Program
C++ How to Program, 8/E
Visual Basic ®2008 How to Program
C How to Program, 6/E
Visual C#® 2010 How to Program, 4/E
Internet & World Wide Web How to Program, 4/E
Visual C#® 2008 How to Program, 3/E
Visual Basic® 2010 How to Program
Visual C#® 2010 How to Program, 3/E
Deitel® Developer Series
Visual C++® 2008 How to Program, 2/E
Small Java™ How to Program, 6/E AJAX, Rich Internet Applications and Web
Development for Programmers
Small C++ How to Program, 5/E
Android for Programmers: An App-Driven
Approach
Simply Series C++ for Programmers
Simply C++: An App-Driven Tutorial Approach C# 2010 for Programmers, 3/E
Simply Java™ Programming: An App-Driven iPhone for Programmers: An App-Driven Approach
Tutorial Approach Java™ for Programmers
Simply C#: An App-Driven Tutorial Approach JavaScript for Programmers
Simply Visual Basic® 2008, 3/E: An App-Driven
Tutorial Approach LiveLessons Video Learning Products
www.deitel.com/books/LiveLessons/
CourseSmart Web Books
Java™ Fundamentals
www.deitel.com/books/CourseSmart/
C# Fundamentals
C++ How to Program, 5/E, 6/E, 7/E & 8/E C++ Fundamentals
Java™ How to Program, 6/E, 7/E, 8/E & 9/E iPhone® App Development Fundamentals
Simply C++: An App-Driven Tutorial Approach JavaScript Fundamentals
(continued next column) Visual Basic Fundamentals
To receive updates on Deitel publications, Resource Centers, training courses, partner offers and more,
please register for the free Deitel® Buzz Online e-mail newsletter at:
www.deitel.com/newsletter/subscribe.html
follow us on Twitter®
@deitel
and become a Deitel & Associates fan on Facebook®
www.deitel.com/deitelfan/
To communicate with the authors, send e-mail to:
For information on government and corporate Dive-Into® Series on-site seminars offered by Deitel &
Associates, Inc. worldwide, visit:
www.deitel.com/training/
or write to
For continuing updates on Prentice Hall/Deitel publications visit:
www.deitel.com
www.pearsonhighered.com/deitel/
Check out our Resource Centers for valuable web resources that will help you master Java, other impor-
tant programming languages, software and, Internet- and web-related topics:
www.deitel.com/ResourceCenters.html