Victoria University of Technology

Object Oriented Programming 1


Annoucement
Date Topic
06/3/2003 The Sample Listings in PDF format from Chapter 1 to Chapter 9 of the textbook has been placed in this web page. Please bring along with you a copy of the slides and the sample listings for the lectures.

Course Objectives    

  • Introduction to Java Programming Language
  •    
  • Developing Applications and Applets in Java
  •    
  • Java and the Internet
  •    
  • Introduction to Concepts of Classes
  •    
  • Introduction to Concepts of Inheritance
  •    
  • Present Examples of Object Oreiented Modeling and Implementations
  •    
  • Java's Graphical User Interface (GUI)
  • Weekly Teaching Plan

    Textbooks    

  • Java Software Solutions - Foundations of Program Design
        Second Edition
        by John Lewis and William Loftus
        Addison Wesley, 2001
  •    
  • Java, Java, Java - Object Oriented Problem Solving
        by Ralph Moreli
        Prentice Hall, 2000
  •    
  • Java How to Program
        Third Edition
        by Deital & Deital
        Prentice Hall, 1999
  • Examination    

  • Sample Paper    
  • Solution

    Lecture Slides in ZIP format
  • Chapter 1 to Chapter 12
  • Workshop Exercises
  • Workshop 1
  • Workshop 2
  • Example Listings in PDF format
       Chapter 1    Chapter 2    Chapter 3    Chapter 4    Chapter 5    Chapter 6    Chapter 7    Chapter 8    Chapter 9

    Example Program Source Files and Related Files
    Chapter Program Source
    1 Lincoln Lincoln2 Lincoln3
    2 Countdown Facts Addition Roses PianoKeys Geometry StringMutation RandomNumbers Echo Quadratic Price CircleStats Einstein Snowman TempConverter
    3 Age Wages MinOfThree GradeReport Counter Average MinPercentage PalindromeTester Counter2 Multiples Stars ExamGrades Bullseye Boxes BarHeights
    4 CountFlips Coin FlipRace BankAccounts Account RationalNumbers Rational SnakeEyes PigLatin PigLatinTranslator LineUp StickFigure
    5 ParameterPassing ParameterTester Num CoumtInstances MyClass Speaker Philospher Dog Talking Dots DotsMouseListener RubberLines Direction cyanUp cyanDown GIF cyanLeft GIF cyanRight GIF bonk AU Rebound
    6 BasicArray ReverseNumbers LetterCount Primes GradeRange NameTag Tunes CDCollection CD SortGrades Sorts SortPhoneList Contact TwoDArray Beatles Rocket Dots2
    7 Words Book Dictionary Words2 Book2 Dictionary2 Messages Thought Academia GradStudent Firm Staff StaffMember Volunteer Employee Executive Hourly FoodAnalysis FoodItem Pizza OffCenter Fahrenheit Doodle DoodleCanvas
    8 Zero ProductCodes Propagation ExceptionScope CreatingExceptions OutofRangeException Inventory InventoryItem TestData
    9 GenericWindowListener FrameDemo ShowFrames LabelDemo Quotes JukeBox Play GIF Stop GIF WesternBeat WAV Classical Melogy WAV Jeopardy Theme AU New Age Rythm WAV Eighties Jam WAV Alfred Hitchcock's Theme WAV

    Development Software

    Keyboard Class
    The class is developed by John Lewis.
    Most of the examples are required the support of the Keyboard class.
       

  • Source
  •    
  • ByteCode
  • Installation Suggestion    

      Create a directory for storing your developed java source such as c:\oop1.
      Create another directory named oop1 under your work directory such as c:\oop1\cs1.
      Copy the Keyboard.class file in this cs1 direcory.
      In this case, a file named c:\oop1\cs1\Keyboard.class should be established.
      Go to your work directory and build up your files such as Average.java that requires the Keyboard class. You can compile your developed program using the command.
            c:\oop1>java Average.java

    Website administered by: S.H. Tong.
    Last Modified: 4 April 2002