Welcome to the COMP-202 homepage for the summer 2008 semester. On this page you can find information relevant to the course, including the course outline, course material, homework assignments, as well as useful links.


News & Reminders
Course Information
Course Materials
Homework Assignments
Useful Resources

News & Reminders

June 24, 2008

Tomorrow (Wednesday June 25), I will be holding special office hours in the Trottier computer labs (third floor) from 14:30 to 16:30. You can come practice on the computers and I'll be available to answer your questions.

June 17, 2008

The next lecture (Thursday June 19) will be the last lecture for this term. It will be a special revision class in preparation for the final exam. There will be no lecture on June 24.

The final will be on June 26th, in Trottier room 0100 (in the basement), from 2:00PM to 5:00PM. There will be no supplementary final exam.

June 12, 2008

I have released Assignment 2, see assignments section below.

June 10, 2008

You may download the midterm exam solution by clicking the link below:

June 3, 2008

Tomorrow I will be holding extended office hours from 14:35 to 16:30 in the Trottier computer labs (Trottier building, third floor). You can come study for your exams, practice on the computers, and I will be available to answer your questions.

May 30, 2008

I have released the solution to assignment 1 (see homework assignments section below). Note that your solution may be different but still equally valid. I was not perfectly clear on how to compute the BMI prime. The most likely answer is simply BMI/25, but some of you had it as BMI/upper category limit. I did not take off marks for this.

May 28, 2008

I can now tell you the date, time and location of the final exam. It will be on June 26th, in Trottier room 0100, from 2:00PM to 5:00PM.

May 27, 2008

The midterm exam will be in-class, on Thursday June 5th. For previous year midterms, please see the "Winter 2008" course link at the bottom of this page. There are two previous year midterms for you to try on that course page (Fall 2006 and Winter 2007), as well as a list of 25 exercises for you to try. If you have any questions regarding these, please discuss them on WebCT so that everyone can benefit.

Direct links to previous year midterms and questions:

I have put today's in-class example online (ObjectsTest.java and Objects.java) and updated the CircleTest.java and Circle.java example.

May 22, 2008

IMPORTANT NOTICE: for assignment 1, you should be submitting 3 files on WebCT. Two .java files for parts 2 and 3, and one .txt file containing the answers for part 1. Do NOT submit .class files.

May 20, 2008

I have put today's in-class program development example (PrimeFactor.java) online.

May 14, 2008

The first assignment is now online (see Homework Assignments section). I have also put two more in-class examples online (Switch.java and Calculator.java).

May 14, 2008

Please take note that next Friday (May 16), I will be holding my office hours from 10:30 to 12:00 instead of the regular hours.

May 5, 2008

Please take note that next Wednesday (May 7), I will exceptionally hold my office hours from 13:30 to 15:00.

May 1, 2008

I have posted the slides for the first lecture online, in PDF format (see "lecture notes" section below). I have a feeling that I might have been going through the material too fast, so I will try to pace things a little slower next time. I encourage you all to ask me questions if at any point during the lectures there is anything you don't understand.

April 29, 2008

I am in the process of setting up the course homepage. The course will begin Thursday, May 1st at 14:35. Lectures will be given in Burnside 1B45 (basement).

Course Information


Name: Maxime Chevalier-Boisvert
E-mail: mcheva (at) cs.mcgill.ca
Office hours: Wednesdays and Fridays 14:30 to 16:00
Office location: MC234A, knock on door.

Please note that if you need to see me outside of my office hours, it may be possible to arrange an appointment with me by e-mail.


Location: Burnside 1B45 (basement)
Time: Tuesdays and Thursdays 14:35 to 16:25

Course Outline

You can download the course outline in PDF format by clicking the link below:

Course Materials

Below are links to download the lecture slides in PDF format:

Lecture 01 - Introduction - May 1, 2008
Lecture 02 - Java in 1 Week - May 6, 2008
Lecture 03 - Java in 1 Week (contd.) - May 8, 2008
Lecture 04 - The Basic Building Blocks - May 13, 2008
Lecture 05 - Conditional Programming - May 15, 2008
Lecture 06 - Programming with Iterations - May 20, 2008
Lecture 07 - Built-in Libraries and Objects - May 22, 2008
Lecture 08 - Building Your Own Classes - May 27, 2008
Lecture 09 - More on Object Orientation - May 29, 2008
Lecture 10 - Programming with Arrays - June 3, 2008
Lecture 11 - Programming with Arrays (contd.) - June 10, 2008
Lecture 12 - Exceptions - June 12, 2008
Lecture 12 - File Access - June 12, 2008
Lecture 13 - Generics - June 17, 2008
Lecture 13 - Recursion - June 17, 2008
Lecture 14 - Final Exam Revision - June 19, 2008

You can download code examples seen in class by clicking the following links:

Calculator.java (Lecture 02 - May 6, 2008)
Comparison.java (Lecture 05 - May 15, 2008)
Switch.java (Lecture 05 - May 15, 2008)
PrimeFactor.java (Lecture 06 - May 20, 2008)
Circle.java (Lecture 07 - May 22, 2008)
CircleTest.java (Lecture 07 - May 22, 2008)
ObjectsTest.java (Lecture 08 - May 27, 2008)
Objects.java (Lecture 08 - May 27, 2008)
Arrays1.java (Lecture 10 - June 3, 2008)
TextFileIO.java (Lecture 12 - June 12, 2008)
ArrayListEx.java (Lecture 14 - June 19, 2008)
Factorial.java (Lecture 14 - June 19, 2008)
NestedLoops.java (Lecture 14 - June 19, 2008)
ObjectParam.java (Lecture 14 - June 19, 2008)
StaticOrNot.java (Lecture 14 - June 19, 2008)

Homework Assignments

You can download the assignments by clicking the links below:

Assignment 1 - Due Friday May 23, 2008
Assignment 2 - Due Friday June 20, 2008

You may also download assignment solutions:

Assignment 1 Solution - Released May 30, 2008

Useful Resources

Below are some links to download software tools you can use to develop Java software:

Java 6 Software Development Kit (SDK) Download
Eclipse Integrated Development Interface (IDE) Download

The following links point to useful information for learning Java. If you don't know where to start, I highly recommend looking at the first one. It's a free online textbook that provides a gentle introduction to the language which is also available as a printable PDF document.

Introduction to Java Programming
Brewing Java: A Tutorial
Sun's Java Tutorials
Sun's Java 6 API Specification
Java Notes from leepoint.net
Catalog of Java Tutorials from java2s.com

Links below point to COMP-202 course webpages from previous semesters. They contain useful notes and material that can help you study for your exams.

COMP-202: Winter 2008
COMP-202: Fall 2007
COMP-202: Winter 2006
COMP-202: Winter 2005
COMP-202: Winter 2004