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

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
2 Introduction to Java
2.1 Objectives
2.2 Java Background
2.2.1 A little Bit of History
2.2.2 What is Java Technology?
2.2.2.3 An application environment
2.2.3 Some Features of Java
2.2.3.2 Garbage Collection
2.2.4 Phases of a Java Program
3 Getting to know your Programming Environment
3.1 Objectives
3.2 Introduction
3.3 My First Java Program
* My first java program */
3.4 Using a Text Editor and Console
3.4.1 Errors
3.4.1.1 Syntax Errors
3.4.1.2 Run-time Errors
3.5 Using NetBeans
3.6 Exercises
3.6.1 Hello World!
3.6.2 The Tree
4 Programming Fundamentals
4.1 Objectives
4.2 Dissecting my first Java program
4.3 Java Comments
4.3.1 C++-Style Comments
4.3.2 C-Style Comments
4.3.3 Special Javadoc Comments
4.4 Java Statements and blocks
4.5 Java Identifiers
4.6 Java Keywords
4.7 Java Literals
4.7.1 Integer Literals
4.7.2 Floating-Point Literals
4.7.3 Boolean Literals
4.7.4 Character Literals
4.7.5 String Literals
4.8 Primitive data types
4.8.1 Logical - boolean
4.8.2 Textual – char
4.8.3 Integral – byte, short, int & long
4.8.4 Floating Point – float and double
4.9 Variables
4.9.1 Declaring and Initializing Variables
4.9.2 Outputting Variable Data
4.9.3 System.out.println() vs. System.out.print()
4.9.4 Reference Variables vs. Primitive Variables
4.10 Operators
4.10.1 Arithmetic operators
4.10.2 Increment and Decrement operators
4.10.3 Relational operators
4.10.4 Logical operators
4.10.4.1 && (logical AND) and & (boolean logical AND)
4.10.4.2 || (logical OR) and | (boolean logical inclusive OR)
4.10.4.3 ^ (boolean logical exclusive OR)
4.10.4.4 ! (logical NOT)
4.10.5 Conditional Operator (?:)
4.10.6 Operator Precedence
4.11 Exercises
4.11.1 Declaring and printing variables
4.11.2 Getting the average of three numbers
4.11.3 Output greatest value
4.11.4 Operator precedence
5 Getting Input from the Keyboard
5.1 Objectives
5.2 Using BufferedReader to get input
5.3 Using JOptionPane to get input
5.4 Exercises
5.4.1 Last 3 words (BufferedReader version)
5.4.2 Last 3 words (JOptionPane version)
6 Control Structures
6.1 Objectives
6.2 Decision Control Structures
6.2.1 if statement
6.2.2 if-else statement
6.2.3 if-else-if statement
6.2.4 Common Errors when using the if-else statements:
6.2.5 Example for if-else-else if
6.2.6 switch statement
6.2.7 Example for switch
6.3 Repetition Control Structures
6.3.1 while loop
6.4.1.2 Labeled break statement
6.4.2 continue statement
6.4.2.1 Unlabeled continue statement
6.4.2.2 Labeled continue statement
6.4.3 return statement
6.5 Exercises
6.5.1 Grades
6.5.2 Number in words
6.5.3 Hundred Times
6.5.4 Powers
7 Java Arrays
7.1 Objectives
7.2 Introduction to arrays
7.3 Declaring Arrays
7.4 Accessing an array element
8.3 Command-line arguments in NetBeans
8.4 Exercises
8.4.1 Print arguments
8.4.2 Arithmetic Operations
9 Working with the Java Class Library
9.1 Objectives
9.2 Introduction to Object-Oriented Programming
9.3 Classes and Objects
9.3.1 Difference Between Classes and Objects
9.3.2 Encapsulation
9.3.3 Class Variables and Methods
9.3.4 Class Instantiation
9.4 Methods
9.4.1 What are Methods and Why Use Methods?
9.4.2 Calling Instance Methods and Passing Variables
9.4.3 Passing Variables in Methods
9.4.3.1 Pass-by-value
9.4.3.2 Pass-by-reference
9.4.4 Calling Static Methods
9.4.5 Scope of a variable
9.5 Casting, Converting and Comparing Objects
9.5.1 Casting Primitive Types
9.5.2 Casting Objects
9.5.3 Converting Primitive Types to Objects and Vice Versa
9.5.4 Comparing Objects
9.5.5 Determining the Class of an Object
9.6 Exercises
9.6.1 Defining terms
9.6.2 Java Scavenger Hunt
10 Creating your own Classes
10.1 Objectives
10.2 Defining your own classes
10.3 Declaring Attributes
10.3.1 Instance Variables
10.3.2 Class Variables or Static Variables
10.4 Declaring Methods
10.4.1 Accessor methods
10.4.2 Mutator Methods
10.4.3 Multiple Return statements
10.4.4 Static methods
10.4.5 Sample Source Code for StudentRecord class
10.5 The this reference
10.6 Overloading Methods
10.7 Declaring Constructors
10.7.1 Default Constructor
10.7.2 Overloading Constructors
10.7.3 Using Constructors
10.7.4 The this() Constructor Call
10.8 Packages
10.8.1 Importing Packages
10.8.2 Creating your own packages
10.8.3 Setting the CLASSPATH
10.9 Access Modifiers
10.9.1 default access (also called package accessibility)
10.9.2 public access
10.9.3 protected access
10.9.4 private access
10.10 Exercises
10.10.1 Address Book Entry
10.10.2 AddressBook
11 Inheritance, Polymorphism and Interfaces
11.1 Objectives
11.2 Inheritance
11.2.1 Defining Superclasses and Subclasses
11.2.2 The super keyword
11.2.3 Overriding Methods
11.2.4 Final Methods and Final Classes
11.3 Polymorphism
11.4 Abstract Classes
11.5 Interfaces
11.5.1 Why do we use Interfaces?
11.5.2 Interface vs. Abstract Class
11.5.3 Interface vs. Class
11.5.4 Creating Interfaces
11.5.5 Relationship of an Interface to a Class
11.5.6 Inheritance among Interfaces
11.6 Exercises
11.6.1 Extending StudentRecord
11.6.2 The Shape abstract class
12 Basic Exception Handling
12.1 Objectives
12.2 What are Exceptions?
12.3 Handling Exceptions
12.4 Exercises
12.4.1 Catching Exceptions1
12.4.2 Catching Exceptions 2
Appendix A : Java and NetBeans Installation
Installing Java in Ubuntu Dapper
Installing Java in Windows
Installing NetBeans in Ubuntu Dapper
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 D : Machine Problems
Machine Problem 1: Phone Book
Machine Problem 2: Minesweeper
Machine Problem 3: Number Conversion
0 of .
Results for:
No results containing your search query
P. 1
JEDI Course Notes Intro1 Master Document

JEDI Course Notes Intro1 Master Document

Ratings: (0)|Views: 38|Likes:
Published by jeangrey_1026

More info:

Published by: jeangrey_1026 on Oct 04, 2010
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

11/02/2011

pdf

text

original

You're Reading a Free Preview
Pages 5 to 29 are not shown in this preview.
You're Reading a Free Preview
Pages 34 to 107 are not shown in this preview.
You're Reading a Free Preview
Pages 112 to 118 are not shown in this preview.
You're Reading a Free Preview
Page 123 is not shown in this preview.
You're Reading a Free Preview
Pages 128 to 243 are not shown in this preview.

You're Reading a Free Preview

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