Now that we have talked about Maps and Sets, the final piece to discuss is the Iterator interface.
This interface provides a simple mechanism for looping through the elements of a Set or List and provides a remove method that is not availabe with the enhanced for loop.
One must be careful not to modify the underlying [...]
Entries from September 2006
Iterators
September 29th, 2006 · No Comments
Tags: Programming III and IV
Final day of HTML
September 29th, 2006 · No Comments
Today will be our final day studying HTML. Monday we will have a quiz and then start working with Javascript. I’m pretty excited. Today’s notes are here.
Tags: Fundamental Programming
New project
September 29th, 2006 · No Comments
I had a bit of a brainstorm for a project, so we’ll start that today. Please see the Graphical Initials folder in the materials folder. This folder contains a BlueJ project with two classes, InitialsFrame and Initials. The Frame will be my responsibility, and will contain code to call custom methods in the Initials class. [...]
Tags: Programming I and II
Slices –> Dreamweaver
September 28th, 2006 · No Comments
We’ll take a quiz today and then return to working with slices. Everyone finished up their slices on Monday, so we will export them and look at the HTML that gets generated in Dreamweaver, which is our Web page editor.
In Dreamweaver, we hit the key to show the structure of a table. View your [...]
Tags: Web Page Design
Good resource for learning about new features of Java 1.5
September 27th, 2006 · No Comments
Kelsey found this set of slides from U Toronto and found it helpful. It has the enhanced for loop, generic classes and autoboxing/autounboxing, which is the feature that allows int and Integer to interface so smoothly.
Tags: Programming III and IV
Maps
September 26th, 2006 · No Comments
Yesterday, we introduced the concept of Maps (see notes). Today, let’s do some simple programming using Maps.
Tags: Programming III and IV
With the first test out of the way,
September 26th, 2006 · No Comments
we will begin to dive into the book more thoroughly. My only compaint about this book is that there is so little programming to do in the 2nd and 3rd chapters. It doesn’t really get fun until chapter 4. We’ll work this week to try and get through chapter 2, and then next week to [...]
Tags: Programming I and II
Creating slices
September 25th, 2006 · No Comments
Slices allow you to break a larger image into smaller images which translate nicely into HTML, and into your web pages. Slices give the web designer much more flexibility than hotspots and allows for the implementation of advanced features like rollovers and other features.
There will be a short quiz on the vocabulary on Thursday
Tags: Web Page Design
Starting HTML Lists
September 25th, 2006 · No Comments
Today we will add to our HTML repertoire by learning how to nest HTML tages. This is important for HTML ordered lists and HTML unordered lists.
You will probably finish early. We will spend that time talking about how you can use the fact that HTML ignores whitespace in order to make our HTML more easy [...]
Tags: Fundamental Programming
Introduction to Maps
September 25th, 2006 · No Comments
Today we begin working with Maps. We have worked with arrays and Lists, and Maps are similar. The big distinction with Maps is that each element in a Map has a key and a corresponding value. The key is a quick way of finding the value. While using Lists and arrays our key has always [...]
Tags: Programming III and IV