Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
12Activity

Table Of Contents

1 Introduction to Computer Programming
1.1 Objectives
1.2 Introduction
1.3 Basic Components of a Computer
1.3.1 Hardware
1.3.1.1 The Central Processing Unit
1.3.1.2 Memory
1.3.1.3 Input and Output Devices
1.3.2 Software
1.4 Overview of Computer Programming Languages
1.4.1 What is a Programming Language?
1.4.2 Categories of Programming Languages
1.5 The Program Development Life Cycle
1.5.1 Problem Definition
1.5.2 Problem Analysis
1.5.3 Algorithm design and representation
1.5.3.1 Flowcharting Symbols and their meanings
1.5.4 Coding and Debugging
1.6 Number Systems and Conversions
1.6.1 Decimal
1.6.2 Binary
1.6.3 Octal
1.6.4 Hexadecimal
1.6.5 Conversions
1.6.5.1 Decimal to Binary / Binary to Decimal
1.6.5.3 Binary to Octal / Octal to Binary
1.6.5.4 Binary to Hexadecimal / Hexadecimal to Binary
1.7 Exercises
1.7.1 Writing Algorithms
1.7.2 Number Conversions
Introduction to Java
1.8 Objectives
1.9 Java Background
1.9.1 A little Bit of History
1.9.2 What is Java Technology?
1.9.2.3 An application environment
1.9.3 Some Features of Java
1.9.3.2 Garbage Collection
1.9.4 Phases of a Java Program
2 Getting to know your Programming Environment
2.1 Objectives
2.2 Introduction
2.3 My First Java Program
* My first java program */
2.4 Using a Text Editor and Console
2.4.1 Errors
2.4.1.1 Syntax Errors
2.4.1.2 Run-time Errors
2.5 Using NetBeans
2.6 Exercises
2.6.1 Hello World!
2.6.2 The Tree
3 Programming Fundamentals
3.1 Objectives
3.2 Dissecting my first Java program
3.3 Java Comments
3.3.1 C++-Style Comments
3.3.2 C-Style Comments
3.3.3 Special Javadoc Comments
3.4 Java Statements and blocks
3.5 Java Identifiers
3.6 Java Keywords
3.7 Java Literals
3.7.1 Integer Literals
3.7.2 Floating-Point Literals
3.7.3 Boolean Literals
3.7.4 Character Literals
3.7.5 String Literals
3.8 Primitive data types
3.8.1 Logical - boolean
3.8.2 Textual – char
3.8.3 Integral – byte, short, int & long
3.8.4 Floating Point – float and double
3.9 Variables
3.9.1 Declaring and Initializing Variables
3.9.2 Outputting Variable Data
3.9.3 System.out.println() vs. System.out.print()
3.9.4 Reference Variables vs. Primitive Variables
3.10 Operators
3.10.1 Arithmetic operators
3.10.2 Increment and Decrement operators
3.10.3 Relational operators
3.10.4 Logical operators
3.10.4.1 && (logical AND) and & (boolean logical AND)
3.10.4.2 || (logical OR) and | (boolean logical inclusive OR)
3.10.4.3 ^ (boolean logical exclusive OR)
3.10.4.4 ! (logical NOT)
3.10.5 Conditional Operator (?:)
3.10.6 Operator Precedence
4.3 Using JOptionPane to get input
4.4 Exercises
4.4.1 Last 3 words (BufferedReader version)
4.4.2 Last 3 words (JOptionPane version)
5 Control Structures
5.1 Objectives
5.2 Decision Control Structures
5.2.1 if statement
5.2.2 if-else statement
5.2.3 if-else-if statement
5.2.4 Common Errors when using the if-else statements:
5.2.5 Example for if-else-else if
5.2.6 switch statement
5.2.7 Example for switch
5.3 Repetition Control Structures
5.3.1 while loop
5.3.2 do-while loop
5.3.3 for loop
5.4 Branching Statements
5.4.1 break statement
5.4.1.1 Unlabeled break statement
6.3 Declaring Arrays
6.4 Accessing an array element
6.5 Array length
6.6 Multidimensional Arrays
6.7 Exercises
6.7.1 Days of the Week
6.7.2 Greatest number
6.7.3 Addressbook Entries
7 Command-line Arguments
7.1 Objectives
7.2 Command-line arguments
7.3 Command-line arguments in NetBeans
7.4 Exercises
7.4.1 Print arguments
7.4.2 Arithmetic Operations
8 Working with the Java Class Library
8.1 Objectives
8.2 Introduction to Object-Oriented Programming
8.3 Classes and Objects
8.3.1 Difference Between Classes and Objects
8.3.2 Encapsulation
8.3.3 Class Variables and Methods
8.3.4 Class Instantiation
8.4 Methods
8.4.1 What are Methods and Why Use Methods?
8.4.2 Calling Instance Methods and Passing Variables
8.4.3 Passing Variables in Methods
8.4.3.1 Pass-by-value
8.4.3.2 Pass-by-reference
8.4.4 Calling Static Methods
8.4.5 Scope of a variable
8.5 Casting, Converting and Comparing Objects
8.5.1 Casting Primitive Types
8.5.2 Casting Objects
8.5.3 Converting Primitive Types to Objects and Vice Versa
8.5.4 Comparing Objects
9.4 Declaring Methods
9.4.1 Accessor methods
9.4.2 Mutator Methods
9.4.3 Multiple Return statements
9.4.4 Static methods
9.4.5 Sample Source Code for StudentRecord class
9.5 The this reference
9.6 Overloading Methods
9.7 Declaring Constructors
9.7.1 Default Constructor
9.7.2 Overloading Constructors
9.7.3 Using Constructors
9.7.4 The this() Constructor Call
9.8 Packages
9.8.1 Importing Packages
9.8.2 Creating your own packages
9.8.3 Setting the CLASSPATH
9.9 Access Modifiers
9.9.1 default access (also called package accessibility)
9.9.2 public access
9.9.3 protected access
9.9.4 private access
9.10 Exercises
9.10.1 Address Book Entry
9.10.2 AddressBook
10 Inheritance, Polymorphism and Interfaces
10.1 Objectives
10.2 Inheritance
10.2.1 Defining Superclasses and Subclasses
10.2.2 The super keyword
10.2.3 Overriding Methods
10.2.4 Final Methods and Final Classes
10.3 Polymorphism
10.4 Abstract Classes
10.5 Interfaces
10.5.1 Why do we use Interfaces?
10.5.2 Interface vs. Abstract Class
10.5.3 Interface vs. Class
10.5.4 Creating Interfaces
10.5.5 Relationship of an Interface to a Class
10.5.6 Inheritance among Interfaces
10.6 Exercises
10.6.1 Extending StudentRecord
10.6.2 The Shape abstract class
11 Basic Exception Handling
11.1 Objectives
11.2 What are Exceptions?
11.3 Handling Exceptions
11.4 Exercises
11.4.1 Catching Exceptions1
11.4.2 Catching Exceptions 2
Appendix A : Java and NetBeans Installation
Installing Java in Ubuntu Gutsy
Installing Java in Windows
Installing NetBeans in Ubuntu Gutsy
Installing NetBeans in Windows
Appendix B: Getting to know your Programming Environment (Windows XP version)
My First Java Program
Using a Text Editor and Console
Setting the Path
Using NetBeans
Appendix C : Answers to Exercises
Chapter 1 Exercises
1.1 Writing Algorithms
1.2 Number Conversions
Chapter 2 (No exercises)
Chapter 3 Exercises
Chapter 4 Exercises
4.1 Declaring and printing variables
4.2 Getting the average of three numbers
4.3 Output greatest value
4.4 Operator precedence
Chapter 5 Exercises
5.1 Last 3 words (BufferedReader version)
5.2 Last 3 words (JOptionPane version)
Chapter 6 Exercises
6.1 Grades
6.2 Number in words
6.3 Hundred Times
9.2 Java Scavenger Hunt
Chapter 10 Exercises
10.1 Address Book Entry
10.2 AddressBook
Chapter 11 Exercises
11.1 Extending StudentRecord
11.2 Abstract Classes
Chapter 12 Exercises
12.1 Catching Exceptions 1
12.2 Catching Exceptions 2
Appendix D : Machine Problems
Machine Problem 1: Phone Book
Machine Problem 2: Minesweeper
Machine Problem 3: Number Conversion
Appendix E : Hands-on Laboratory
Note to the Teacher
Chapter 1 Hands-on
Chapter 2 Hands-on
Chapter 3 Hands-on
3.1 Things to check before you start the lab
3.2 Write, Compile, and Run Hello Java Program
3.3 Write, Compile, and Run Hello Java Program using NetBeans
Chapter 4 Hands-on
4.1 Declaring, Initializing, Printing Variables
4.2 Conditional Operator
Chapter 5 Hands-on
5.1 Getting Input From Keyboard via BufferedReader
5.2 Getting Input From Keyboard via JOptionPane
Chapter 6 Hands-on
6.1 For Loop
Chapter 7 Hands-on
7.1 Arrays
Chapter 8 Hands-on
Chapter 9 Hands-on
9.1 Pass-by-Value
9.2 Pass-by-Reference
9.3 Comparing Objects
Chapter 10 Hands-on
10.1 Create your own class
10.2 Overloading
10.3 Packaging
Chapter 11 Hands-on
11.1 Inheritance – Constructor
11.2 Inheritance - Overriding
11.3 Polymorphism
11.4 Abstract Classes
11.5 Interfaces 1
11.6 Interfaces 2
Chapter 12 Hands-on
12.1 Exception Handling
Answers to Hands-on Exercises
Appendix F : Additional Exercises
Chapter 1: Introduction to Computer Programming
Chapter 2: Introduction to Java
Chapter 3: Getting to Know your Programming Environment
Chapter 4: Programming Fundamentals
Chapter 5: Getting Input from the keyboard
Chapter 6: Control Structures
Chapter 7: Java Arrays
Chapter 8: Command-line Arguments
Chapter 9: Working with the Java Class Library
Chapter 10: Creating your own classes
Chapter 11: Inheritance, Polymorphism and Interfaces
Chapter 12: Basic Exception Handling
0 of .
Results for:
No results containing your search query
P. 1
teacher-manual

teacher-manual

Ratings: (0)|Views: 2,335 |Likes:

More info:

Published by: Jacqueline Beltran Buctolan on Mar 06, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/03/2013

pdf

text

original

You're Reading a Free Preview
Pages 8 to 88 are not shown in this preview.
You're Reading a Free Preview
Pages 96 to 111 are not shown in this preview.
You're Reading a Free Preview
Pages 119 to 147 are not shown in this preview.
You're Reading a Free Preview
Pages 155 to 257 are not shown in this preview.
You're Reading a Free Preview
Pages 265 to 371 are not shown in this preview.

Activity (12)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
ramtico liked this
Cai Fuentes liked this
Kumidiocese liked this
magabz liked this
adddata liked this
adddata liked this
jaszy666 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->