Quiz 5 :: Sorting - posted

Quiz 5 is live on the moodle site.

NOTES: Iterators

Here are notes on Iterators from class in case you weren’t able to transcribe what was on the board.
IN EACH EXAMPLE below, the loop simply prints out the value of each element in the list.
ArrayList<Integer> list = new ArrayList<Integer>();
//fill list with ints
//Old way to iterate, using ArrayList accessor methods:
for(int i=0; i<list.size(); i++){
System.out.println(list.get(i));
}
//Using an Iterator
Iterator [...]

Inauguration Day notes

Since most of you will be watching the innauguration, class will be a wash.
BUT YOU HAVE TO DO THREE THINGS:
1. Remember that Lab12 is due MEOM tonight.
2. YOU MUST register on the moodle site so you can take the class quizzes.
a. register on the site
b. enroll in the course: ‘APCS 2009′
3. Go to javabat.com
a.) create [...]

Activity: Fun With Loops

This is an in-class activity on using loops to produce patterns of beepers in a Karel World.
You are not turning this in, but you are responsible for the concepts that underlie problems 1-9 on the worksheet.
Worksheet: activity_BeeperPatterns.pdf
Starting BlueJ Project: activity_BeeperPatterns.zip 

Test 1 Review Packet

Resources you can use to review:
1.  100808_Test1_reviewPacket.pdf This is my review packet which I have to admit is pretty sloppily formatted, but hopefully you’ll find a lot of information.
2.Karel Book, Chapters 1-5
3. Blue Pelican Book - can help answer java questions in a non-Karel context.
4. Each Other!  Feel free to ask and respond to questions [...]

NOTES: extend Robot & recursion example

Here is the Robot class that uses recursion that we developed in class. Use it for you reference:
example_Recursion.zip

NOTES: LongSweeper and CrazyPolyBot

Here are the LongSweeper and CrazyPolyBot examples of polymorphism we did in class.
1. example_LongSweeper.zip
2. example_CrazyPolyBot.zip 
Make sure you understand these examples!

Quiz 3 - Monday, Sept. 29

Details about the quiz were sent to the email list.
In general, the quiz will cover the basics of extending UrRobot to make a new robot class, and writing your own instructions to solve some new kind of problem.

Free Textbook (actually pretty good)

Scholars,
Here is a text book in pdf form that I haven’t totally reviewed, but looks pretty good after a brief perusal.  It’s handy in pdf form because you can just do a text search for things you’re looking for.  I’ll make a permenant link to it in the right-hand column of this page.  Also here:
Blue [...]

Quiz 2 - Wed. Sept. 24

This quiz will cover two areas.
1. Karel Basics
You will be asked to write very simple code within the main method that gets some karel robots to achieve some simple task a la “HBot.”  I’m merely looking for confirmation that you know how to construct UrRobots use their basic methods to get robots to move.  You [...]