Search this siteby FreeFind
Introduction

Description

College Tests

Lec/Lab 1 Jan 15 T

Lec/Lab 2 Jan 17 R

Lec/Lab 3 Jan 22 T

Lec/Lab 4 Jan 24 R

Lec/Lab 5 Jan 29 T

Lec/Lab 6 Jan 31 R

Lec/Lab 7 Feb 5 T

Lec/Lab 8 Feb 7 R

Lec/Lab 9 Feb 12 T

Lec/Lab 10 Feb 14 R

Lec/Lab 11 Feb 19 T

Lec/Lab 12 Feb 21 R

Lec/Lab 13 Feb 26 T

Lec/Lab 14 Feb 28 R

Lec/Lab 15 Mar 5 T

Lec/Lab 16 Mar 7 R

Lec/Lab 17 Mar 12 T

Lec/Lab 18 Mar 14 R

Lec/Lab 19 Mar 26 T

Lec/Lab 20 Mar 28 R

Lec/Lab 21 Apr 2 T

Lec/Lab 22 Apr 4 R

Lec/Lab 23 Apr 9 T

Lec/Lab 24 Apr 11 R

Lec/Lab 25 Apr 16 T

Lec/Lab 26 Apr 18 R

Lec/Lab 27 Apr 23 T

Lec/Lab 28 Apr 25 R

Lec/Lab 29 Apr 30 T

Lec/Lab 30 May 2 R

Lec/Lab 31 May 7 T

Lec/Lab 32 May 9 R

Lec/Lab 33 May 14 T

|Project 5 |Final Review |Java Picasso |Solutions |On-line Resources

Final Examination(May 14): H 295 AV 230 L 160

Project 5: H 100, AV 70, L 40

Who are Java Picassos?

Introduction

Course Title:     Java I
Catalog Number:   DG157U
Section:          68028
Semester Hour:    4 (lec/lab, 3/2)
Prerequisites:    At least one programming skill.
Term:             Spring, 2002
Lecture Time:     6:00pm -- 8:30pm Tue. & Thurs.
Lecture Date:     1-14-02 to 5-15-02
Location:         Business/Fine Arts Building Room 212
Textbook:         Comprehensive Java Programming
                  By Joyce Farrell ISBN 0-7600-1070-6 

For admission information, please contact javacamp.org

Return to top


Course Description

     This is an introduction course to the Java programming language and to the Object-Oriented programming model. A previous programming experience would be helpful, but not necessary.

     Students will learn the fundamentals of the Java programming language and be able to code, test and debug simple Java applications and applets.

     Students will familiarize with the concepts of access control, encapsulation, inheritance and polymorphism.

Return to top


College Tests

     Here collect some tests from some colleges and universities to meet the needs of every level of Java programmers. Feel free to take them and polish your skill. Go to the Tests page.

Return to top


Lecture/Lab 1 Jan. 15 Tue.

    

  • Course description
  • Course requirement
  • Java history
  • Key benefits of learning Java
  • JDK1.2 info
  • Familiar with javac & java
  • Write 2 Java programs: First.java and Hello.java
  • Java comments
  • Assignment(option): Write a program to print out initials.

Return to top


Lecture/Lab 2 Jan. 17 Thurs.

    

Return to top


Lecture/Lab 3 Jan. 22 Tue.

     Class canceled.

Return to top


Lecture/Lab 4 Jan. 24 Thurs.

  • Review
    • Object & class
    • Type Literal
    • Assignment Operators
    • Comparison Operators
    • String Concatenation Operator +
    • Conversion May Occur
      • Assignment
      • Method-call
      • Arithmetic Promotion
    • Cast Operator
    • First.java and Hello.java revisit
  • Lab
    • runtime error
    • static method
    • defining a class
    • classpath
    • use class and static method
    • practice1 & Project 1
  • Assignment: write a static method to print initials.
  • Class Notes

Return to top


Lecture/Lab 5 Jan. 29 Tue.

  • Review
    • Keywords null, void
    • Wrapper classes
    • Default constructor
    • new operator
    • class methods & static methods
  • Elements of a class
    • class field
    • class method
    • instance field
    • instance method
  • Employee class
  • Practice and understand elements of Employee class
  • Class Notes
Converting & Casting Practice part I is available now. It helps you consolidate concepts of converting & casting which may happen in assignment, method-call and arithmetic promotion. It is optional. You don't need to turn in.

Return to top


Lecture/Lab 6 Jan. 31 R

  • Review
    • Default constructor
    • Members of a class
    • Employee class revisit
  • Method Overloading
  • Constructor Overloading
  • Floating blocks
  • System class
  • Assignment: Read Chapter 4.
  • Reference Answers to Chapter 3
  • SystemDetective source code
  • Class Notes PowerPoint compatible with MS 95,97 & 2000.

Return to top


Lecture/Lab 7 Feb. 5 Tue.

  • Review -- On-line Research
    • Overloading Constructors
    • Overloading Methods
    • Object, String, Date, Math
    • Language Specification
  • Operators ++/-- &&/||
  • Loop construct
  • Selection construct
  • Read from keyboard
  • Assignment: Read Chapter 4.
  • Reference Answers to Chapter 4
  • Download GuessNumber source code for Lab practice
  • Class Notes PowerPoint compatible with MS 95,97 & 2000.

Return to top


Lecture/Lab 8 Feb 7 Thur.

Return to top


Lecture/Lab 9 Feb 12 Tue.

  • Array Revisit
  • String Revisit
  • StringBuffer
  • Array Search
  • String Sort
  • Pass by Value & Pass by Reference
  • Use loops to get correct input
  • Use try/catch block to catch wrong input
  • Download SortString source code for Lab practice
  • Class Notes PowerPoint compatible with MS 95,97 & 2000.

Return to top


Lecture/Lab 10 Feb 14 Thur.

Class Notes PowerPoint compatible with MS 95,97 & 2000.

Solutions for Quiz I

Return to top


Lecture/Lab 11 Feb 19 Tue

    

  • Clarify Doubts
  • is/has relationship
  • Interface/Abstract class
  • extends/implements
  • Event-Driven
  • WindowListener
  • Download MyWindow source code for Lab practice
  • Class Notes PowerPoint compatible with MS 95,97 & 2000.

Return to top


Lecture/Lab 12 Feb 21 Thur

  • Review
    • Java Programming Terms I (handout)
    • How to pass message to your program
    • How to write a class method
    • How to call a class method
    • How to call an instance method
    • How to use prewritten classes
    • How to use Java loops
    • How to use Java selections
    • How to use try/catch to catch exceptions
    • How to subtask
    • How to design methods and solve ambiguous problems
  • Classroom tutoring Project 2
  • Class Notes PowerPoint compatible with MS 95,97 & 2000.
  • Turn in an empty floppy disk on Feb. 26 Tue.
  • NOTE: From next week, all PowerPoint class notes will be gone. If you need downloading, please download before Feb 25 Monday. The class notes will be posted on in HTML format. If you need special help, you can get the PowerPoint version only in classroom.

Return to top


Lecture/Lab 13 Feb 26 Tue

  • Review
    • is/has relationship
    • interface
    • abstract method
  • Components
    • Button
    • Label
  • Layout Managers
    • FlowLayout
    • BorderLayout
    • GridLayout
  • Download MyWindow3 source code for Lab practice
  • Class Notes

Return to top


Lecture/Lab 14 Feb 28 Thur

  • Review
    • FlowLayout
    • BorderLayout
    • GridLayout
  • Components
    • TextField
  • Interface
    • ActionListener
  • Adapter class
  • Inner class
  • Anonymous class
  • GUI Design
    • My Calculator
    • My Mortgage Calculator
  • Download MyWindow4 source code for Lab practice
  • Class Notes

Return to top


Lecture/Lab 15 Mar 5 T

Return to top


Lecture/Lab 16 Mar 7 R

Return to top


Lecture/Lab 17 Mar 12 T

     Objectives

  • KeyListener
  • MouseListener
  • MouseMotionListener
  • Review Questions
  • Practice with KeyListener
  • Download KeyEventDemo source code for Lab practice
  • Class Notes

Return to top


Lecture/Lab 18 Mar 14 R

    Mid-Term Examination

Return to top


Lecture/Lab 19 Mar 26 T

  • Review
    • Project 3
    • Midterm Test(paper)
  • Applet
    • Application vs Applet
    • Applet Life Cycle
    • How to write an applet
    • How to make an application be an applet
  • Lab (30 pts)
    • Write an applet
    • Make an application be an applet
    • Essay
  • Take notes in classroom.

Return to top


Lecture/Lab 20 Mar 28 R

  • Review
    • Applet Life Cycle
    • Steps for writing an applet
    • Steps for making a stand-alone app be an applet
  • How to draw on an applet
    • Font, FontMetrics, Color revisit
    • repaint(), update(), paint()
    • member methods in Graphics
  • Lab (50 pts) Project 4
  • Take notes in classroom.

Return to top


Lecture/Lab 21 Apr 2 T

  • Review
    • Graphics
    • paint()
  • Conversion btw Applet and stand-alone App
  • How to display image file
  • How to play sound
  • Applet Restrictions
  • Polymorphism
    • compile-time
    • run-time
    • dynamic binding
  • instanceof
  • Lab (15 pts) Practice file

Return to top


Lecture/Lab 22 Apr 4 R

  • Review
    • Inheritance vs Polymorphism
    • Overloading vs Overriding
    • dynamic binding
    • instanceof
  • package keyword
  • Encapsulation(access control)
    • public
    • protected
    • package
    • private
  • Lab
    • Make a package
    • Test encapsulation features

Return to top


Lecture/Lab 23 April 9 T

Review & Lab(50 pts)

  • Access Control Modifiers
  • Dynamic binding or late binding
  • instanceof operator
  • Important notes

Return to top


Lecture/Lab 24 April 11 R

  • Object Reference Conversion
    • Assignment
    • Method call
    • Casting
  • Override methods in Object class
  • Software Design
    • Effective Java Programming
  • Lab
    • Test how Java uses interface to achieve multiple inheritance
  • Have EmployeeTest.java code ready
  • PowerPoint class notes available in classroom.
  • Project 4 due.

Return to top


Lecture/Lab 25 Apr 16 T

  • Review
    • Object Reference Conversion
    • Multiple Inheritance Feature
    • Abstract class vs. Interface
  • Java Exception Handling
    • Keywords involved
    • Runtime Exception
    • Error
    • Checked Exception
  • Exceptions vs. Overriding
  • Bitwise Operators
  • No Lab
  • class notes html format
  • Bitwise operators examples

Return to top


Lecture/Lab 26 Apr 18 R

  • Review Exceptions
  • Lab
    • Questions on page 556, 576
    • Sample from p563-571
    • Have GuessNumber.java source code ready
    • Project 5
    • Reading Assignment: Chapter 13

Return to top


Lecture/Lab 27 Apr 23 T

  • File class
    • How to use File class
  • InputStream & OutputStream
    • How to read from a file
    • How to write to a file
  • Practice code available in class

Return to top


Lecture/Lab 28 Apr 25 R

  • RandomAccessFile class
  • DataOutputStream & DataInputStream class
  • How to write and read formatted data
  • Lab practice file available in class
  • Questions on p596, p615
  • Reading Assignment Chapter 14

Return to top


Lecture/Lab 29 Apr 30 T

Multithreading chapter 14 Section A

Return to top


Lecture/Lab 30 May 2 R

  • Review -- Multithreading
  • Animation

Nervous or Dancing?

I am so hungry.

What a happy day!

Return to top


Lecture/Lab 31 May 7 T

  • JDBC introduction
  • How to write code to connect to Microsoft Access
  • How to create, update, query data from database
  • Lab 10 points
  • Final Review

Return to top


Lecture/Lab 32 May 9 R

Online answering questions from 6:00pm - 9:00pm. Send your questions to me

Return to top


Lecture/Lab 33 May 14 T

Final Examination

Return to top