This is an introduction to programming
using the Java programming
language, a so-called object-oriented, imperative
programming language. No background in computing is assumed.
Additional note: IN HW 3, please call the third file Prime.java instead of prime.java. Make the appropriate change to the name of the class, too.
for all course-related correspondence: subject heading MUST contain COMP 112
You will be shown how to log in next week.
See the Other Resources section below for
This means one needs 3 pieces of software to play this game:
These three components are available on the PCs in SCI 74 (our lab) and almost all the PCs on the campus computing facilities. They are also available on rintintin.wesleyan.edu, a machine that can be accessed from (almost) any networked PC or MAC on Campus.
They can also be downloaded for free onto your own computer. See Other Resources below.
If you have a MAC with OSX then you already have everything you need! (this will be explained in class)
As for a program editor, you already have a windowless version of emacs. However, this is not mouse-senstive and a pain to use. So you will want to download Aquamacs.
You can also use another program editor for Java. Alpha Edit and BBedit work fine on Macs. (See me about this).
(This is not trivial: roll your sleeves up)
OR
download cygwin (read THIS WEBPAGE) and follow the same steps shown in lab! I'll show how to download cygwin in lab.
| Week | Date | Topic | Reading | Homework Due | Remarks | |
|---|---|---|---|---|---|---|
| 1 | S9 | Introduction to the language and the Course | Gosling et. al.Java summary | Turn in student info sheet | Mondays 7-11: evening slot for labs and review sessions | |
| 2 | S14-16 | A tour of Java and imperative & object-oriented languages: Variables, parameters, classes, methods. | Ch 1,2 (esp. 2.1-2.10) in BJ | |||
| 3 | S21-23 | Basic Java: Using Objects and Classes. Graphics | Ch.2 (esp. 2.11-2.13 on Graphics) in BJ | HW 0 due Sept. 28 at 11:59pm | 2.11-2.13 Introduce graphics in Java | |
| 3 | Sept. 21 | First Lab meeting | Monday, 9:30 pm | |||
| 4 | S28-30 | Basic Java: Building your own Classes. | Ch.3 in BJ | |||
| 5 | Oct. 5 | Homework Help Session | Monday, at 9:30pm, in Lab: Sc 74 | |||
| 5 | O5-7 | Fundamental Data Types (4.1-4.4), Strings (4.6) and Taking input from user (4.7) | Ch. 4 in BJ | HW 1 | Due Wed. Oct 7, 11:59 PM | |
| 6 | Oct 12-14 | more on Strings. (4.6). Control structures:if, switch and while | Ch. 5 and Ch. 6.1 in BJ | |||
| 7 | Oct 19-21 | More about Control: loops and iteration with while and for. Termination. REVIEW | Ch. 6 in BJ | HW 2 Due Wed. Oct 21, 11:59pm |
Mon. Oct. 19, 8-10pm: Help for HW2 in lab (Sc72) TUE. Oct 20, 6-8pm: Office hour, SC 635 | |
| Oct 23-27 | Fall Break | |||||
| 8 | Oct 28 | MIDTERM I | in class | |||
| 9 | Nov 2-4 | More Control: Iteration II. for loops. Nested loops. Arrays | Rest of Ch.6. (up to 6.5) and 7.1 | Prog. HW 3 | Program due Fri. Nov. 6, 11:59pm | |
| 10 | Nov 9-11 | Arrays and other Collection types | Ch.7.2-7.3, 8.1 | |||
| 11 | Nov 16-18 | Arrays and Lists. Graphics applications | Ch. 7 | Prog. HW 4 | Due Tue., Nov. 24, 11:59pm | |
| 12 | Nov 23 | Applications & REVIEW | ||||
| Nov 25-28 | Thanksgiving Break | |||||
| 13 | Nov 30 | MIDTERM II | in class | |||
| 13 | Dec. 2 | Principles and Theory of Class Design. | ||||
| 14 | Dec 7-9 | Interfaces. Events | ch. 9 in BJ | Last week of classes. | ||
| 14 | Dec.10-16 | Office Hours. Consultations | Final Projects | Project DEMOS Must be Scheduled to take place on Dec. 13-16 | ||
September 2009
Su Mo Tu We Th Fr Sa
-------------
--------- 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
October 2009
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 -----
---------28 29 30 31
November 2009
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 -----------
---30
December 2009
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 ----- ---- no class
------rrrrr eeeee rr r reading period
rr eeeee 23 24 25 26 e exam period
27 28 29 30 31