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
1Activity

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
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.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
7.5 Array length
7.6 Multidimensional Arrays
7.7 Exercises
7.7.1 Days of the Week
7.7.2 Greatest number
7.7.3 Addressbook Entries
8 Command-line Arguments
8.1 Objectives
8.2 Command-line arguments
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
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.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 Linux
Installing Java in Windows
Installing Netbeans in Linux
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
6.4 Powers
Chapter 7 Exercises
7.1 Days of the Week
7.2 Greatest number
Chapter 8 Exercises
8.1 Print Arguments
Chapter 9 Exercises
9.1 Defining terms
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
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.5 Interfaces 1
11.6 Interfaces 2
Chapter 12 Hands-on
12.1 Exception Handling
Answers to Hands-on Exercises
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: 162 |Likes:
Published by Geoff Bravo

More info:

Published by: Geoff Bravo on Mar 07, 2012
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/13/2014

pdf

text

original

You're Reading a Free Preview
Pages 8 to 115 are not shown in this preview.
You're Reading a Free Preview
Pages 123 to 156 are not shown in this preview.
You're Reading a Free Preview
Pages 164 to 181 are not shown in this preview.
You're Reading a Free Preview
Pages 189 to 290 are not shown in this preview.
You're Reading a Free Preview
Pages 298 to 364 are not shown in this preview.

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)//-->