EARTH WEEK
Go paperless and save 40% on eligible eBooks, 70% on video now through April 26. Shop the sale.
Register your product to gain access to bonus material or receive a coupon.
NEW—Latest Java coverage—Updated for version 5.0:
~Uses the new Scanner class in place of SavitchIn. No nonstandard classes are used. SavitchIn is now covered in an appendix.
~Covers automatic boxing and unboxing.
NEW—Introduction to generics:
~Vectors are done in the new generics framework.
~There is an introduction to defining classes with type parameters, including programming examples with type parameters.
NEW—Optional Graphics supplement sections—Provided at the end of chapters 1-9.
~Allows students to do applet and other GUI programming starting with chapter 1.
~Emphasizes applets but also covers GUIs built using the JFrame class.
~Any time after Chapter 7, instructors may move on to the main chapters on GUI programming (Chapters 12-14).
Flexibility–Enables instructors to easily change the order of chapters and sections covered.
~Explains the particulars about rearranging material in an included dependency chart, and in more detail in the “Prerequisites” sections at the start of each chapter.
~Does not use any specialized libraries. Only standard classes available as part of the standard Java libraries are used.
Early Graphics–Provides optional Graphics Supplement sections end chapters starting with Chapter 1. Those instructors who prefer to postpone the coverage of graphics may postpone or skip the Graphics Supplement sections.
Coverage of problem-solving and programming techniques.
~Includes numerous case studies and programming tips.
~Provides many sections that explain important problem-solving and programming techniques, such as loop design techniques, debugging techniques, style techniques, abstract data types, basic object-oriented programming techniques, including UML and event-driven programming, and generic programming using type parameters.
Object-Oriented and Traditional Techniques–Introduces classes fairly early.
~Some exposure to using classes is given in Chapters 1 and 2.
~Covers how to define classes in Chapter 4.
~The optional Graphics Supplement sections provide additional early practice with classes.
~All of the basic information about classes, including inheritance, is presented by the end of Chapter 7; however, some topics regarding classes, including inheritance, can be postponed to later in a course.
Language Details and Sample Code–Gives complete explanations of Java language features and lots of sample code. Programs are given in their entirety, along with sample input and output. In many cases, there are even extra complete examples available over the Internet, in addition to the complete examples in the text.
Self-Test questions—Spread throughout each chapter. These questions have a wide range of difficulty levels. Some require only a one-word answer, whereas others require the reader to write an entire, nontrivial program. Complete answers for all the self-test questions, including those requiring full programs, are given at the end of each chapter.
Fully class-tested—Much of the material and many of the methods of presentation were revised in response to this class testing.
Student Resources—The source code from the book, code for extra programming examples, and links to download locations for Java compilers and programming environments are provided on the book’s website: http://www.prenhall.com/savitch
Instructor’s Resource Guide—A chapter-by-chapter guide that contains numerous teaching hints, quiz questions with solutions, and solutions to many programming exercises.
Companion Website—Includes code, PowerPoint slides, and other teaching resources.
Codekey Student access cards are needed and are bundled at no extra cost with every new Savitch,
Introduction to Problem Solving &Programming,4/e text (0-13-155774-2).
In a conversational style, best-selling author Walter Savitch teaches programmers problem solving and programming techniques with Java. KEY TOPICS: Introduces object-oriented programming and important computer science concepts such as testing and debugging techniques, program style, inheritance, and exception handling. Includes thorough coverage of the Swing libraries and event-driven programming. Provides a concise, accessible introduction to Java that covers key language features. Covers objects thoroughly and early, with an emphasis on applications over applets. MARKET: A useful reference for programmers who want to brush up on their Java skills.
1. Introduction to Computers and Java
2. Primitive Types, Strings, and Console I/O
3. Flow of Control.
4. Defining Classes and Methods
5. More About Objects and Methods
6. Arrays
7. Inheritance
8. Exception Handling
9. Streams and File I/O
10. Dynamic Data Structures and Generics
11. Recursion
12. Window Interfaces Using Swing
13. Applets and HTML
14. More Swing
Appendix 1: Keywords
Appendix 2: Precedence Rules
Appendix 3: Unicode Character Set
Appendix 4: SavitchIn
Appendix 5: Protected and Package Modifiers
Appendix 6: The Decimal Format Class
Appendix 7: The Iterator Interface
Appendix 8: Cloning
Appendix 9: Javadoc
Appendix 10: The }OptionPane Class
Appendix 11: Differences Between C++ and Java
Index