all
Table of Contents
- 1.
4003-707 Advanced Java Programming -- 20091
- 2.
General Information
- 3.
What is Java?
- 3.1.
Differnt JVMS ...
- 3.2.
J2SE Platform at a Glance
- 3.3.
The first Program: Hello.java
- 3.4.
The first Application
- 3.5.
The first applet -- applets/hello
- 3.6.
Documentation -- javadoc
- 4.
Java Programming Basics
- 4.1.
The First Program
- 4.2.
Use of the StringThing Class
- 4.3.
Strings and Numbers
- 4.4.
Declaration versus Creation
- 4.5.
Let's use our first Class!
- 4.6.
Confusion about this
- 4.7.
Primitive Types and Values
- 4.8.
Unicode
- 4.9.
String to int
- 4.10.
Arithmetic Expressions
- 4.11.
Arithmetic Operators
- 4.12.
Mixed Mode Arithmetic and Casting
- 4.13.
Assignment Operators
- 4.14.
Playing with the Basic Types
- 4.15.
Flow Control
- 4.16.
Conditions
- 4.17.
Relational Operators
- 4.18.
Logical Operators
- 4.19.
if Statement
- 4.20.
Find the Maximum of two Numbers I
- 4.21.
Find the Maximum of two Numbers II with ?:
- 4.22.
while Statement
- 4.23.
Calculate Sqrt(2) without the MathClass
- 4.24.
Continue
- 4.25.
Break
- 4.26.
Return
- 4.27.
Abrupt Completion
- 4.28.
do Statement
- 4.29.
for Statement
- 4.30.
Find all Prime Numbers in [ 2 ... 100 ]
- 4.31.
switch Statement
- 4.32.
Partial Lowercase
Uppercase
- 4.33.
Questions
- 5.
Class Relationships
- 5.1.
Class Details
- 5.2.
Static in Classes/Methods Lifetime
- 5.3.
Parameter Passing
- 5.4.
Example I
- 5.5.
Example II
- 5.6.
Example III
- 5.7.
Example IV
- 5.8.
A Point Class
- 6.
Java 1.5 Add On's I
- 6.1.
Scanner: Overview
- 6.2.
Scanner: Constructors
- 6.3.
Scanner: Reading Methods
- 6.4.
Scanner: Testing Methods
- 6.5.
Scanner: Example 1
- 6.6.
Scanner: Example 2
- 6.7.
Scanner: Example 3
- 6.8.
Scanner: Example 4
- 6.9.
Iterators History
- 6.10.
Array Iterators ala JDK 1.5
- 6.11.
Iterators and Arrays
- 6.12.
Collection Iterators ala JDK 1.5
- 6.13.
Boxing
- 6.14.
Example 1
- 6.15.
Example 2
- 6.16.
Variable Argument Count for Methods
- 6.17.
Variable Argument: Motivation
- 6.18.
Variable Argument: Usage
- 6.19.
Variable Argument: Syntax
- 6.20.
Variable Argument: Example 1
- 6.21.
Variable Argument: Example 2
- 6.22.
Variable Argument: Example 3
- 6.23.
Summary
- 6.24.
Type-Safe Enumerations - Intro
- 6.25.
Type-Safe Enumerations - Basics
- 6.26.
Type-Safe Enumerations - Example 1
- 6.27.
Type-Safe Enumerations - In the Class Hierarchy
- 6.28.
Type-Safe Enumerations - Static Methods
- 6.29.
Type-Safe Enumerations - Example 2
- 6.30.
Type-Safe Enumerations - Example 3
- 6.31.
Enum Class Syntax
- 6.32.
Java 1.6 Enhancements
- 7.
Inheritance
- 7.1.
Syntax
- 7.2.
Example
- 7.3.
Constructor Sequence
- 7.4.
How to get access to super class methods/variables?
- 7.5.
Private, Protected and Final I
- 7.6.
Determining Accessibility
- 7.7.
Packages
- 7.8.
Polymorphism
- 7.9.
Another Example
- 7.10.
Inner Classes
- 7.11.
Class Cast
- 7.12.
Class Cast: Execution
- 7.13.
Abstract Classes
- 7.14.
Class Cast and Abstract Classes
- 7.15.
Site Note: Documentation -- javadoc
- 7.16.
Additional Examples
- 7.17.
Interfaces
- 7.18.
Aggregation
- 7.19.
Short Examples for Clarification
- 7.20.
A Binary Search Tree
- 7.21.
Nested Classes
- 7.22.
Anonymous Classes
- 7.23.
Static Initializer Blocks
- 7.24.
Questions
- 7.25.
What is the following Example doing?
- 7.26.
Additional Questions
- 7.27.
Questions:
- 8.
Exceptions and Assertions
- 8.1.
Exceptions
- 8.2.
Runtime Exceptions
- 8.3.
Compiletime Exceptions
- 8.4.
Runtime Exceptions are Not Checked
- 8.5.
Runtime Exceptions--The Controversy
- 8.6.
Throwable and Error
- 8.7.
Try
- 8.8.
Catch
- 8.9.
Finally
- 8.10.
Throw
- 8.11.
Exceptions are Precise
- 8.12.
Handling Asynchronous Exceptions
- 8.13.
Example 1
- 8.14.
Example 2
- 8.15.
Example 3
- 8.16.
Try Example
- 8.17.
Example Throw and Re-throw
- 8.18.
Exceptions and Inheritance
- 8.19.
A 'Real Example'
- 8.20.
Reading From Files
- 8.21.
Exception Index
- 8.22.
Exception Class
- 8.23.
Throwable
- 8.24.
Create a new Exception class
- 8.25.
Assertions
- 8.26.
Assertions: Example
- 8.27.
Assertions: Processed
- 8.28.
Assertions: Enable
- 8.29.
Assertions: Throwable
- 8.30.
Assertions: Disableing
- 9.
Collections
- 9.1.
What is a Collection
- 9.2.
How could we Implement the Previous Example?
- 9.3.
Iterators
- 9.4.
Implementation of Sort
- 9.5.
What Is a Collections Framework?
- 9.6.
Benefits of a Collections Framework
- 9.7.
Collection Interface
- 9.8.
Set Interface
- 9.9.
Lists
- 9.10.
Maps
- 9.11.
Maps vs Collections
- 9.12.
An Picture
- 9.13.
General Purpose Implementations
- 9.14.
Implementations: Set
- 9.15.
Implementations: List
- 9.16.
Implementations: Map
- 9.17.
Algorithms
- 9.18.
Examples: HashSet
- 9.19.
Examples: HashMap I
- 9.20.
List Iterator
- 9.21.
Object Ordering
- 9.22.
Filling a HashTable and using a reasonable hashfunction
- 9.23.
Filling a HashTable and not using a reasonable hashfunction
- 9.24.
Sorting Maps
- 9.25.
Shuffling
- 9.26.
Routine Data Manipulation
- 9.27.
Searching
- 9.28.
Finding Extreme Values
- 9.29.
Comparable
- 9.30.
Example I:
- 9.31.
Example II:
- 9.32.
Example: CORRECT
- 9.33.
Example: NOT CORRECT
- 9.34.
Warning
- 9.35.
Comparator in separate Classes
- 9.36.
Exercise I
- 9.37.
Exercise II
- 10.
Java Tools
- 11.
Java 1.5 Add On's II
- 12.
Threads
- 13.
Swing
- 14.
Event Handling
- 14.1.
Messaging vs. listening
- 14.2.
How to Implement an Event Handler
- 14.3.
Threads and Event Handling
- 14.4.
Interface MouseListener
- 14.5.
Availibility
- 14.6.
Checkbox
- 14.7.
Which One?
- 14.8.
Improved Lotto Handler ...
- 14.9.
An Interesting Example: The App
- 14.10.
Using DefaultStyledDocument
- 14.11.
Extreme Editor: Interface
- 14.12.
Extreme Editor: StyledDocument
- 14.13.
Extreme Editor: ExtremeEditor
- 14.14.
Extreme Editor: Colors
- 14.15.
Extreme Editor: Makefile
- 15.
Painting
- 15.1.
An Example of Painting
- 15.2.
The Coordinate System
- 15.3.
Draw a Yellow Rectangle
- 15.4.
Draw a Red/Green/Blue Rectangle
- 15.5.
Draw many Red/Green/Blue Rectangles
- 15.6.
A Sketch Application
- 15.7.
A Ticker Application
- 16.
Applets
- 17.
I/O: Files and Streams
- 18.
Networking
- 18.1.
The Subject
- 18.2.
A Network Architecture Example: WWW
- 18.3.
What is the Internet
- 18.4.
What is an Intranet
- 18.5.
Protocol
- 18.6.
Protocol Layering
- 18.7.
The OSI Seven-Layer Model
- 18.8.
TCP/IP
- 18.9.
TCP/IP layering
- 18.10.
Internet Addresses
- 18.11.
IP Address Classes
- 18.12.
Ethernet Address
- 18.13.
Encapsulation
- 18.14.
TCP Ports
- 18.15.
Socket
- 18.16.
java.net
- 18.17.
Getting Information
- 18.18.
Daytime Client
- 18.19.
Daytime Server
- 18.20.
Reading from and Writing to a Socket
- 18.21.
Connection to an URL
- 18.22.
Multi Client Server and Client
- 18.23.
Datagram Socket
- 18.24.
Remote Method Invocation
- 18.25.
Remote Method Invocation: Idea
- 18.26.
Remote Method Invocation: Idea II
- 18.27.
SenderProxy/Receiver Proxy
- 18.28.
SenderProxySource Code
- 18.29.
ReceiverProxySource Code
- 18.30.
Remote Method Invovation Registry
- 18.31.
Passing Non-remote Objects
- 18.32.
Advantages of Dynamic Code Loading
- 18.33.
Remote Interfaces, Objects, and Methods
- 18.34.
RMI && JDK 1.5
- 18.35.
Creating Distributed Applications Using RMI
- 18.36.
Intro Example
- 18.37.
Hello World
- 18.38.
Hello World II
- 18.39.
Multiple Servers
- 18.40.
Running Multiple Server on different Machines
- 18.41.
Startup Multiple Server on different Machines
- 18.42.
Calculating PI
- 18.43.
Receiving and Sending Objects
- 18.44.
RMI and Multi Threaded Systems
- 18.45.
Dynamic Class Loading
- 19.
Reflection API
- 19.1.
Intro example
- 19.2.
Discovering Class Modifiers
- 19.3.
Identifying Class Fields
- 19.4.
Getting Values
- 19.5.
Setting Values
- 19.6.
Obtaining Method Information
- 19.7.
Invoking Methods
- 20.
Under Construction
- 21.
Homework 1 -- Sept/7/2009 - Sept/13/2009
- 22.
Homework 2 -- Sept/14/2009 - Sept/20/2009
- 23.
Homework 3 -- Sept/21/2009 - Sept/27/2009
- 24.
Homework 4 -- Sept/28/2009 - Oct/4/2009
- 25.
Homework 5 -- Oct/4/2009 - Oct/11/2009
- 26.
Homework 6 -- Oct/12/2009 - Oct/19/2009
- 27.
Homework 7 -- Oct/18/2009 - Oct/26/2009
- 28.
Homework 8 -- Oct/26/2009 - Nov/1/2009
- 29.
Homework 9 -- Nov/2/2009 - Nov/8/2009
- 30.
Examination I-- April/1/2010
- 31.
Examination II -- Feb/3/2010
- 32.
Final -- November/16/2009
Created by
unroff,
java2html &
& hp-tools.
© by csfac. All Rights Reserved (2010).
It is not allowed to print these pages on a CAST printer.
Last modified 01/April/10