Chapter 0 About This Course¶
Chapter 1 Getting Started¶
- 1. Getting Started
- 1.1. Installing BlueJ
- 1.2. Introducing LightBot
- 1.3. From LightBot to Micro Worlds
- 1.4. Self Check: Micro-Worlds
- 1.5. A Bit More LightBot
- 1.6. Textually Representing Programs
- 1.7. Self-Check: Turning Micro-Worlds into Code
- 1.8. What Does LightBot Say About Programming?
- 1.9. A Programmable LightBot in Java
- 1.10. Syntax Practice 1a
- 1.11. Creating New Objects
- 1.12. Calling Methods on an Object
- 1.13. Putting it All Together
- 1.14. A Word on Making Code Easy to Read
- 1.15. Syntax Practice 1b
- 1.16. Programming Practice 1
- 1.17. Check Your Understanding
Chapter 2 Inheritance and Polymorphism¶
- 1. Inheritance and Polymorphism: Subclasses and Methods
Chapter 3 Conditional and Repeating Actions¶
- 1. Conditional and Repeating Actions
- 1.1. Selection
- 1.2. Conditions Using Sensor Methods
- 1.3. Java’s Syntax for the If-Then-Else Structure
- 1.4. Syntax Practice 3a: If-Then-Else
- 1.5. Creating Optional Statements With If-then
- 1.6. Java’s Syntax for the If-then Structure
- 1.7. Syntax Practice 3b: If-Then
- 1.8. Java’s Syntax for the Multi-way Selection Structure (a cascaded if)
- 1.9. Syntax Practice 3c: Multi-way If
- 1.10. Compound Conditions
- 1.11. Syntax Practice 3d: Compound Conditions
- 1.12. Repeating Actions
- 1.13. Generic Repetition Structures
- 1.14. Java’s Syntax for the While Loop
- 1.15. Syntax Practice 3e: While Loops
- 1.16. Programming Practice 3
- 1.17. Check Your Understanding
Chapter 4 Software Testing¶
- 1. Software Testing
- 1.1. What Is Software Testing?
- 1.2. Writing Your First Software Test
- 1.3. Check Your Understanding: Software Testing Concepts
- 1.4. More About Methods
- 1.5. Check Your Understanding: Method Signatures
- 1.6. Check Your Understanding: Methods with Parameters
- 1.7. Good Habits for Conditionals
- 1.8. A Different Type of Complex If-Statement
- 1.9. Short Circuit Evaluation
- 1.10. Check Your Understanding: Logical Equivalence
- 1.11. Syntax Practice 4
- 1.12. Programming Practice 4
- 1.13. Module Review
Chapter 5 Variables, Fields, and Parameters¶
- 1. Variables, Fields, and Parameters
- 1.1. Variables
- 1.2. Check Your Understanding: Variables
- 1.3. Fields Versus Local Variables
- 1.4. Changing Private Variables: Mutator Methods
- 1.5. Check your Understanding: Scope
- 1.6. Accessor Methods
- 1.7. Check Your Understanding: Fields, Getters and Setters
- 1.8. The Return Keyword
- 1.9. Check your Understanding: Typed Methods and Return Statements
- 1.10. Using Fields in Testing
- 1.11. Syntax Practice 5
- 1.12. Programming Practice 5
Chapter 6 Pictures and For-each Loops¶
Chapter 7 Aggregation, Strings and More Loops¶
- 1. Aggregation, Strings and More Loops
- 1.1. Object-Oriented Design: Aggregation, Composition, and Delegation
- 1.2. Strings and Characters
- 1.3. Check Your Understanding: Strings
- 1.4. Counter-controlled Loops
- 1.5. Check Your Understanding: Counter Controlled Loops
- 1.6. Tips on Random Numbers
- 1.7. Check Your Understanding: Random Numbers
- 1.8. Method Overriding
- 1.9. Check Your Understanding: Method Overriding
- 1.10. Syntax Practice 7
- 1.11. Programming Practice 7
Chapter 8 Grouping Objects Using Lists and Nested For Loops¶
- 1. Grouping Objects Using Lists and Nested For Loops
- 1.1. Collections of Objects
- 1.2. Interfaces
- 1.3. Check Your Understanding: Interfaces
- 1.4. The List Interface
- 1.5. Generics
- 1.6. ArrayList
- 1.7. Check Your Understanding: ArrayLists
- 1.8. Nested For Loops
- 1.9. Check Your Understanding: Nested For Loops
- 1.10. Syntax Practice 8
- 1.11. Programming Practice 8
- 1.12. Check Your Understanding
Chapter 9 Lists, Loop Idioms, Generics, and the Null Keyword¶
- 1. Lists, Loop Idioms, Generics, and the Null Keyword
- 1.1. Modelling the Contents of a Library
- 1.2. Looping Idioms
- 1.3. Check Your Understanding: Loop Idioms
- 1.4. Generics Revisited
- 1.5. Check Your Understanding: Generics
- 1.6. The Null Keyword
- 1.7. Diagnosing a Null Pointer Exception
- 1.8. Check Your Understanding: Null
- 1.9. Using BlueJ’s Debugger
- 1.10. Using BlueJ’s Code Pad
- 1.11. Syntax Practice 9
- 1.12. Programming Practice 9
Chapter 10 Arrays¶
- 1. Arrays
- 1.1. Creating An Array
- 1.2. Accessing Items in Arrays
- 1.3. Setting Items in an Array
- 1.4. Arrays Compared to Lists (or ArrayList)
- 1.5. Putting It All Together
- 1.6. Check Your Understanding: Arrays
- 1.7. Iterating Over Arrays
- 1.8. Check Your Understanding: Iterating with Arrays
- 1.9. Initializing Array Contents
- 1.10. Printing Arrays
- 1.11. Copying Array Variables
- 1.12. Naming Array Variables
- 1.13. Writing Test Assertions Involving Arrays
- 1.14. Applying Arrays in a Problem
- 1.15. Syntax Practice 10
- 1.16. Programming Practice 10
- 1.17. Check Your Understanding
Chapter 11 Multi-dimensional Arrays¶
Chapter 12 Input, Output and Variable Scoping¶
- 1. Input, Output and Variable Scoping
- 1.1. Variable Scoping
- 1.2. Check Your Understanding: Scope
- 1.3. Syntax Practice: Scoping
- 1.4. Java Input and Output
- 1.5. Output Using PrintWriters
- 1.6. Check Your Understanding: Output
- 1.7. Input Using Scanners
- 1.8. A Complete Input Example
- 1.9. Check Your Understanding: Input
- 1.10. A Complete Input/Output Example
- 1.11. Testing I/O-based Operations
- 1.12. Check Your Understanding: Testing
Chapter 13 Maps and Sets¶
- 1. Maps and Sets
- 1.1. The Map and Set Interfaces
- 1.2. The Map Interface
- 1.3. Syntax Practice: Making Maps
- 1.4. Adding and Accessing Pairs in a Map
- 1.5. Syntax Practice: Adding to Maps
- 1.6. Checking for and Removing Pairs in a Map
- 1.7. A Visual Summary of Using Map and HashMap
- 1.8. Syntax Practice: Map Contains and Remove
- 1.9. Looping Over Map Contents
- 1.10. Check Your Understanding: Maps
- 1.11. The Set Interface
- 1.12. Syntax Practice: Making A Set
- 1.13. Adding Values to a Set
- 1.14. Syntax Practice: Adding to a Set
- 1.15. Checking Values in a Set
- 1.16. Syntax Practice: Set Contains
- 1.17. Removing Values from a Set
- 1.18. Syntax Practice: Set Remove
- 1.19. Looping Over Sets
- 1.20. Check Your Understanding: Sets
- 1.21. Programming Practice: Maps
Chapter 14 Static, Main, and Exceptions¶
- 1. Static, Main, and Exceptions
- 1.1. The Main Method
- 1.2. Check Your Understanding: Main Methods
- 1.3. The Static Keyword
- 1.4. Check Your Understanding: The Static Keyword
- 1.5. Errors
- 1.6. Throwing Exceptions
- 1.7. Check Your Understanding: Throwing Exceptions
- 1.8. Syntax Practice: Throwing Exceptions
- 1.9. Try/Catch Blocks
- 1.10. Check Your Understanding: Try/Catch Blocks
- 1.11. Syntax Practice: Try-Catch Blocks
Chapter 15 Unit 7¶
- 1. Style and Documentation
- 2. Objects, Enums, and UML Diagrams
- 3. More on Exceptions
- 4. Introduction to Bags
- 4.1. Objectives
- 4.2. Bags
- 4.3. The BagInterface
- 4.4. Array Implementation of Bags
- 4.5. [5:28] More Bag Method Implementation Video Demonstration
- 4.6. Methods that Remove and Design Improvement Lesson and Demo
- 4.6.1. [5:28] Methods that Remove and Design Improvement Video Demonstration, Part 1
- 4.6.2. [6:45] Methods that Remove and Design Improvement Video Demonstration, Part 2
- 4.6.3. [9:03] Methods that Remove and Design Improvement Video Demonstration, Part 3
- 4.6.4. Checkpoint 4
- 4.6.5. [14:47] Array Resizing Video Demonstration
- 4.6.6. Tradeoffs of using an array implementation for a bag
- 4.7. Unavailable
- 4.8. Linked Bags
- 4.8.1. [4:10] Introduction to Linked Bags
- 4.8.2. [12:45] LinkedBag add and toArray Video Demonstration
- 4.8.3. Checkpoint 5
- 4.8.4. [7:14] ExLinkedBagJunit Video Demonstration
- 4.8.5. [14:00] LinkedBag getFrequencyOf and contains Video Demonstration
- 4.8.6. Checkpoint 6
- 4.8.7. [13:44] LinkedBag Removing an Item Video Demonstration
- 4.8.8. Checkpoint 7
- 4.9. Wrapping up Bags
- 4.10. Unavailable
Chapter 16 Efficiency¶
Chapter 17 Stacks¶
Chapter 18 Linked Chains and Pointers¶
Chapter 19 Computer Science and Ethics¶
Chapter 20 Recursion¶
- 1. Recursion
- 1.1. Objectives
- 1.2. [5:53] Intro to Recursion Video, Part 1 of 2
- 1.3. [12:41] Intro to Recursion Video, Part 2 of 2
- 1.4. [12:36] Factorial Examples Video
- 1.5. [13:30] Display Arrays Video
- 1.6. [9:53] Middle Processing Trace Video
- 1.7. [7:41] Linked Chain Recursive Video
- 1.8. [11:44] Tower of Hanoi Video
- 1.9. [8:28] Recursion Wrap Up Video
Chapter 21 Sofware Design and MVC¶
- 1. Software Design and MVC
- 1.1. Objectives
- 1.2. [9:30] Intro to Software Design Video
- 1.3. Functional and non-functional requirements
- 1.4. Identifying classes, fields, and methods
- 1.5. Design Activity: Case Study e-Commerce solution (online storefront) for ABC Ltd
- 1.6. Identifying relationships, hierarchies, and opportunities for reuse
- 1.7. Activity
- 1.8. Intro to Design Patterns and MVC
- 1.9. [11:00] MVC and Observer Video
- 1.10. MVC Example AddressBook
- 1.11. Design Review: Case Study - e-Commerce solution (online storefront) for ABC Ltd.
- 1.12. Case Study - Vending Machine