Home

Research

Publications

Teaching

Project Proposals

Personal

Computing Home

DCU Home
 

CA591-598 Object Oriented Programming with JAVA

[ Intro ] [ Notes ] [ Assignments ] [ Past Papers ]

Notes

Sequence Topic Tutorials/Labs Programs Ref:
1 CA591-CA598-Overview

Intro-to-Java-Programs

Design Exercises

Lab Session One

Prepare for Week2 Tutorial

AddNumbers.java - ComputeNumbers.java - ComputeNumbersE.java - EuroConvert.java - MakeChange.java Files and DirectoriesLINK || Compiling and Running || HELLO WORLD || Template
2 Programming SELECTION

Programming LOOPS

Selection Exercises

LOOPS Exercises

Extra Loop Exercise

ComputePay.java - Payroll.java - Pay01.java - Pay02.java - Pay03.java - SumScores.java - AvgScores.java - Pay03a.java - Pay01a.java - TestDo.java - TestWhile.java - FixError.java javac ERROR messages

Download JAVA for HOME USE

Setup JDK Home Use (LINK)

3 Programming Case and Boolean Variables

More about Java Expressions

- TestElec.java - LotsTables.java - DrawTriangle.java - MultTable.java Going Back over everything to-date REVISION
4 ProgrammingJAVA Methods and Drivers

Methods Exercises

Online JAVA Methods Revision

TestComm.java - TestAllowance.java - TestCels.java - PrintTemps.java -

Message.java - Birthday.java - Birthday2.java - TestMax.java - TestMax2.java - CarHire.java - TestMath.java - TestRandom.java

Put this file Console.class in the same folder as your java files.

About the Console class

STudy Guide for Methods

Troubleshooting Sample JAVA programming errors

5 ProgrammingJAVA Arrays and Strings Arrays Exercises

Array Worksheet

AvgDiff.java - AssigningGrade.java - Calendar.java - TestPassArrays.java

SubStrings.java - ReverseString.java - TestString.java - UserName.java

-
6 2009JavaLabExam1.pdf Use of your Lecture Notes/Booklet and a Text Book are allowed in the exam

You will also have access to your H: drive programs

LAB EXAM1: Covers all material covered in Lectures/Booklets up to end of Week 5

The lab exams for the day class
EXAM1: Week 6 Thursday 4th November 11:00am - 13:00pm in L101,L114

The lab exams for the evening class
EXAM1: Week 6 Tuesday 2nd November 8:00pm-10:00pm in LG25

-
7 Programming JAVA Classes and Objects Classes Intro Exercises

Classes Petrol Pump Exercise

BankAccount.java - UseAccounts.java - Rectangle.java - TestRectangle.java

TestVending.java

Tunes.java - ChooseLotto1.java

Second Lotto ProgramLotto.java AND ChooseLotto.java

Reference Variable Contents -> Employee.java AND TestEmployee.java

Passing a reference variable UseAccounts2.java

Co-operating Objects RunBank.java (Needs BankAccount.java)

Array of Objects Car.java and TestCar.java

Notes on formatting output System.out.printf()

8 Programming JAVA Inheritance and Polymorphism Sample Solutions to previous exercises RoundNumber.java RoundNumbers2.java CommandLine.java HelloFile.java HelloFile2.java TestFormat.java CompareFormat.java -
9 - - TestChars.java TestStringTokenizer.java Tokenizer.java ReadData.java TestInput.java TestInput2.java ReadTextFile.java NumbersIn.java -
PR1 PROJECT JAVA Project Notes [Section ONE] Groups (2-3 people) selected and names emailed to lecturer by Friday Week 8 -
PR2 PROJECT TESTING/DOCUMENTATION JAVA Project TESTING and Documentation [Section Two]

JAVA Project Files and Enhancement Ref [Section Three]

JAVA Project How to Submit Project [Section Four]

Read these documents carefully as they specify how to test and document the project -
PR3 PROJECT TESTING FILES and SUBMISSION FORM JAVA Project Files Creating Employee Files and PayApp class

Project Submission Form

Download CreateEmpFile ReadEmpFile EmpInFile EmpOutFile and PayApp files -
RESULTS LAB EXAM ONE RESULTS Click here for GDF DAY

Click here for GDF Evening

Click here for MECB

- -
10 SampleLabTest2.pdf

GolfClub.java TestClub.java Product.java TestProd.java

- LAB EXAM2: Covers all material covered in Lectures/Booklets up to end of Week 10

The lab exams for the day class
EXAM2: Week 11 Thursday 9th December 11:00am - 13:00pm in L101,L114

The lab exams for the evening class
EXAM2: Week 11 Tuesday 7th December 8:00pm-10:00pm in LG25

-
11 Sample written exam

Sample 2010 solution

JAVA Syntax REFERENCE GDF Which is available during january Written Exam

JAVA Syntax REFERENCE MECB Which is available during january Written Exam

- - -
RESULTS 2 LAB EXAM TWO RESULTS Click here for GDF DAY

Click here for GDF Evening

Click here for MECB

- -