Lesson 1: Java Skeleton and Console Output
- Goals:
- Consistently re-create a basic Java program skeleton.
- Print outputs using System.out.print and println.
- Identify and make corrections to syntax and logical errors.
- Tasks:
- Memorization of structure and syntax of Program Skeleton
- Simple “Hello World” program on Netbeans
- Project: FromMeToYou
Lesson 2: Data Types
- Goals:
- Compare and choose data types: int, double, String.
- Declare and initialize variables.
- Create logical and conventional variable names.
- Tasks:
- Exercise: 1-12
Lesson 3: String Operations
- Goals:
- Apply basic string operations: concatenate, length, substring, substring, toUpperCase.
- Apply escape sequences in strings.
- Tasks:
- Project: NameThatCelebrity
- Exercise: 1-12 (without Java)
Lesson 4: Arithmetic Operations
- Goals:
- Apply basic arithmetic operations: add, subtract, multiply, divide, modulus.
- Apply special arithmetic operators: ++, –, +=, -=
- Differentiate between c++ and ++c.
- Tasks:
- Project: ArithmeticAssignment
- Exercise: 1-18 (without Java)
Lesson 5: Mixed Data Types
- Goals:
- Convert primitive data types by casting.
- Convert strings to numbers (vice versa) using toString and parseType.†
- Compute arithmetic operations with mixed data types.
- Tasks:
- Project: MixedResults
- Exercise: 1-18 (without Java)
- Quiz: Lesson 1-5
† Supplementary (not in book)
Lesson 6: Math Operations
- Goals:
- Apply the Math class to compute common functions and constants: sqrt, pow, abs, round, random, PI
- Tasks:
- Exercises: 1-4, 14
Lesson 7: Keyboard Input
- Goals:
- Import external packages.
- Record keyboard input into strings and numbers.
- Tasks:
- Project: RadiusOfCircle
- Project: FullName
- Quiz: Lesson 6-7
Lesson 9: If-Else Statements
- Goals:
- Review of boolean data type and Boolean operators.
- Compare strings with equals(…) method.
- Make decisions using if and if-else statements.
- Tasks:
- Project: OddOrEven
- Exercise: 1-20
Lesson 10: Switch Statements
- Goals:
- Make decisions using switch statements.
- Apply the char data type.
- Tasks:
- Project: WeightOnOtherPlanets
Lesson 11: For Loops
- Goals:
- Create loops using for statement.
- Identify non-terminating loops.
- Tasks:
- Project: NameReversal
- Exercise: 1-14
Lesson 12: While and Do-While Loops
- Goals:
- Create loops using while and do-while statements
- Tasks:
- Exercise: 1-14
- Quiz: Lesson 8-12
Lesson 15: Classes and Objects, Pt.1
- Goals:
- Build a useful class with state variables, constructors and methods.
- Break down parts of a method: access control, returned type, method name, parameters.
- Create an object in the main method.
- Tasks:
- Project: Circle
Lesson 16: Classes and Objects, Pt.2
- Goals:
- Determine public and private access control.
- Tasks:
- Project: BankAccount (re: Lesson 15 – use private state variables to hide balance from main method.)
Project: Automobile
- Quiz: Lesson 15-16
Evaluation
- BPJ Projects: 65%
- Quiz: 35%
Programming 12 Java Cohort
Lesson 18: Arrays
- Goals:
- Declare and initialize arrays in different ways.
- Initialize arrays with loops.
- Apply length and split method to arrays.
- Tasks:
- Project: ArrayOfHope
- Exercise: 1-12
Lesson 19: Advanced Arrays
- Goals:
- Create arrays of objects
- Identify behavior when making reference to same array.
- Remove array by setting null.
- Use System.arraycopy to make copies of arrays.
- Use Arrays.sort to quicksort arrays in ascending order.
Lesson 37: Exceptions
- Goals:
- Catch and handle exceptions when thrown.
- Identify anticipated and unanticipated exceptions.
- Identify types of exceptions: IO, Arithmetic, Index out of Bounds, Null Pointer.
Lesson 24: Read from File
- Goals:
- Create string arrays to read and store text files.
Project: TBA – password protected