Part One: Tour of JavaChapter 1: Primitive Java1.1 The General Environment1.2 The First Program1.3 Primitive Types1.4 Basic Operators1.5 Conditional Statements1.6 MethodsSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 2: Reference Types2.1 What is a Reference?2.2 Basics of Objects and References2.3 Strings2.4 Arrays2.5 Exception Handling2.6 Input and OutputSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 3: Objects and Classes3.1 What is Object-Oriented Programming?3.2 A Simple Example3.3 javadoc3.4 Basic Methods3.5 Additional Constructs3.6 Packages3.7 A Design Pattern: Composite (pair)SummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 4: Inheritance4.1 What is Inheritance?4.2 Designing Hierarchies4.3 Multiple Inheritance4.4 The Interface4.5 Fundamental Inheritance in Java4.6 Implementing Generic Components Using Inheritance4.7 Implementing Generic Components Using Java
1.5 Generics4.8 The Functor (Function Objects)4.9 Dynamic Dispatch DetailsSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesPart Two: Algorithms and Building BlocksChapter 5: Algorithm Analysis5.1 What is Algorithm Analysis?5.2 Examples of Algorithm Running Times5.3 The Maximum Contiguous Subsequence Sum Problem5.4 General Big-Oh Rules5.5 The Logarithm5.6 Static Searching Problem5.7 Checking on Algorithm Analysis5.8 Limitations of Big-Oh AnalysisSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 6: The Collections API6.1 Introduction6.2 The Iterator Pattern6.3 Collections API: Containers and Iterators6.4 Generic Algorithms6.5 The List Interface6.6 Stacks and Queues6.7 Sets6.8 Maps6.9 Priority QueuesSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 7: Recursion7.1 What is Recursion?7.2 Background: Proofs by Mathematical Induction7.3 Basic Recursion7.4 Numerical Applications7.5 Divide-and-Conquer Algorithms7.6 Dynamic Programming7.7 BacktrackingChapter 8: Sorting Algorithms8.1 Why is Sorting Important?8.2 Preliminaries8.3 Analysis of the Insertion Sort and Other Simple Sorts8.4 Shellsort8.5 Mergesort8.6 Quicksort8.7 Quickselect8.8 A Lower Bound for SortingSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 9: Randomization9.1 Why do we need random numbers?9.2 Random Number Generators9.3 Nonuniform Random Numbers9.4 Generating a Random Permutation9.5 Randomized Algorithms9.6 Randomized Primality TestingSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesPart Three: ApplicationsChapter 10: Fun and Games10.1 Word Search Puzzles10.2 The Game of Tic-Tac-ToeSummaryKey ConceptsCommon ErrorsOn the InternetExercisesReferencesChapter 11: Stacks and Compilers11.1 Balanced-Symbol Checker11.2 A Simple CalculatorSummaryKey ConceptsCommon Erro