Computer Science 302, Section 20

Fall 2002

General Info | Announcements | Lectures


General Info

This is the homepage for CS302, Section 20.  Click here for general information about CS302 (syllabus, grading, etc).

Class Days:

Tuesday, Thursday

Location:

Noland Zoology Building, Room 342

Time:

7:00PM - 8:15PM

 

 

Instructor:

Andy Hutcheson

E-mail: ahutch@cs.wisc.edu

Office:

1306 Computer Science Building

Phone Number:

262-6601

Office Hours:

Monday, Thursday 6pm - 7pm (and, usually 8am-10am weekdays)
Lab Hours: Tuesday, Wednesday 8am - 9am

Back to top


Announcements

Back to top


Lectures

Week 9

Thursday

Tuesday

Week 8

Tuesday

The Format class (from the javabook package)

A possible implementation of the centerAlign method -


  public static String centerAlign(int width, long num) {
     String result = "" + num;
     //The minus one insures that we don't overshoot
     while ( result.length() < width - 1 ) {
        result = " " + result + " ";
     }
     //Arbitrarily add the odd space to the end if needed
     if (result.length() < width ){
        result = result + " ";
     }
     return result;
  }

Week 7

Thursday

Tuesday


Exam #1


Week 4

Lecture 6

Topics Covered

Week 3

Lecture 5

Topics Covered

Lecture 4

Topics Covered

Week 2

Lecture 3

Topics Covered

Week 1

Lecture 2

Topics Covered

Lecture 1

Topics Covered

Back to top