Download Chapter Outline - Moore Public Schools

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Pre-AP Computer Science: Chapter Outline
2/3
Number in Blue is for the Third Edition
Chapter 2/3
Introducing Java Chapter Outline
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
Why program in Java?
Objects, Classes and Packages
a. Objects
b. Classes
c. Packages
A Java Application
a. Statements
b. Controlling Class
c. Method
d. Comments
Executing a Java Application
Displaying Output
a. Output Stream
b. Print() / Println()
c. Argument
d. String
e. Escape Sequence
Formatting Output
Code Conventions
Algorithm Design
Case Study
Number in Green is for the Second Edition
Chapter 3/4
Variables and Constants
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
X.
XI.
XII.
XIII.
XIV.
Declaring Variables
a. Declaration
b. Data Type
c. Identifier
Using Variables
a. Assignment
b. Literal
c. Initialize
d. Concatenation
Primitive Data Types
a. Int
b. Double
c. Char
d. Boolean
e. Floating Point
Abstract Data Types
a. Object
b. instantiation
Java Packages
Obtaining a Value from the User
a. Input Stream
b. Scanner
c. Exception
d. Prompt
Numeric Expressions
a. Integer Division
b. Modulus Division
Type Casting
Formatting Numeric Output
Assignment Operators
Using Named Constants
Identifiers and Keywords
Programming Errors
a. Syntax Error
b. Logic/Semantic Error
c. Run-Time Error/Exception
d. Arithmetic Exception
e. Input Mismatch Exception
Case Study
Chapter 4/5
Conditional Control Structures
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
If Statement
a. Conditional Control Structure
b. Boolean Expression
If-else Statement
Nested Statements
If-else If Statement
Switch Statement
Generating Random Numbers
a. Linear Congruential Method
b. Pseudorandom
Compound Boolean Expressions
a. && and II
b. Logical And
c. Logical Or
d. Truth Table
e. Short Circuit Evaluation
Math Class
Case Study
Chapter 5/6
Loop Structures and Strings
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
While Statement
a. Loop Structure
b. Iteration
Do-While Statement
Infinite Loops
Counters and Accumulators
For Statement
a. Loop Control Variable
b. Scope
c. Increment Operator
Debugging Techniques
a. Debugger
b. Break Point
c. Variable Trace
d. Additional println()
e. Commenting Out Code
String Class
a. Index
b. Immutable
c. Null
d. Null Pointer Exception
Comparing Strings
Case Study
Chapter 6/7
Methods
I.
II.
III.
IV.
V.
VI.
VII.
Program Development Using Methods
a. Top-Down Development
b. Procedural Abstraction
c. Call
Writing Methods
a. Method Declaration
b. Method Body
c. Access Level
d. Access Modifier
e. Visibility
f. Class Method
g. Void
h. Naming Conventions
i. Local Scope
Method Parameters
a. Passing Data
b. Argument
c. Pass By Value
Method Overloading
Return Statement
Documenting Methods
a. Precondition
b. Postcondition
Case Study
Chapter 7/8
Classes and Object-Oriented Development
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
What is an Object?
a. State
b. Behavior
c. Encapsulation
d. Information Hiding
e. Client Code
Designing and Writing a Class
a. Class Declaration and Body
b. Constructor
c. Member
d. Accessor Method
e. Modifier Method
f. Helper Method
Writing Constructors
Instance and Class Members
a. Instance Variable
b. Class Variable
c. Instance Methods
d. Class Methods
Object Class
a. Superclass
b. Subclass
c. Inherit
d. Override
e. Class Cast Exception
Classed Using Classes
a. Has-a Relationship
Object-Oriented Development
a. Reusability
b. Designing Objects
c. Client Code
d. Modular
e. Message
f. Implementing the Classes
Case Study
Chapter 8/9
Inheritance and Polymorphism
I.
II.
III.
IV.
V.
VI.
Extending a Class
a. Inheritance
b. Is-a Relationship
Implementing a Subclass
a. Extends
b. Base Class
c. Derived Class
d. Super
e. Visibility
Polymorphism
Abstract Classes
a. Abstract
b. Abstract Method
Interfaces
a. Comparable Interface
b. Multiple Interface
Case Study
Chapter 9/10
Arrays
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
X.
XI.
Declaring Arrays
a. Array element
b. Index
c. Declaring and Allocating Space for an Array
d. Initial Array Values
e. Declaring and Initializing
Using Arrays
a. Accessing an Element
b. Changing an Element
c. Array Index Out Of Bounds
d. Traversing
e. For-each Statement
Array Parameters
Arrays with Meaningful Indexes
Characters and Arrays
a. charAt()
b. toCharArray()
c. Unicode
d. Type Casting
Searching an Array
Two-Dimensional Arrays
a. Declaration
b. Length
c. Accessing Elements
d. Nested For Statements
e. Array Parameter
The ArrayList Class
a. Collection
b. Collection Framework
c. Dynamic Array
Wrapper Classes
Autoboxing and Auto-Unboxing
Case Study
Chapter 10/11
GUI’s and Event-Driven Programming
I.
II.
III.
IV.
V.
VI.
VII.
VIII.
IX.
X.
XI.
What is a GUI?
a. Event-Driven Application
b. Event Handler
The Swing Package
a. Javax.swing
b. Frame
c. Container, Content Frame
d. Labels
e. JPanel Content Pane
f. Thread
JButton Class
Handling Events
a. Listener
b. Action Command
c. This
Controlling Layout
a. Layout
b. Layout Manager
c. Flow Layout Manager
d. Box Layout Manager
e. Grid Layout Manager
f. Alignment
g. setLayout() Method
h. setBoarder() Method
i. setAlignment() Method
j. Grid Layout Manager
k. java.awt
Getting Input from the User
Combo Boxes
Changing Colors
Adding Images
Using Nested Classes to Handle Events
Case Study
Related documents