1. Lab 10

  2. Homework 08

  3. Exam

No problems with Lab 10 apparently. 

This week: an exam and an assignment.

Let's examine how we can reset the ports for Tomcat.

Now let's talk about the exam. 

Attendance: 

Take a piece of paper sign it and write down without any help in 5 minutes
the shortest program that can keep time. 

Jacob T Jackson Adel Ruifeng Kyle Lin J, Yaodong Chen, Vinoth, Cheng Jiang 
Elissa Jacob A Hasan Tim J Ryan H Young H Y Miguel Tristen Sam Tom Ben Tyler 
Dian Caleb Baojie Wenhao Yubang Ou Nanjie Yutong Mange Topher Lalo Mike H 
Griffin P Seth Marc Ross Jing Esteban 

import javax.swing.*; 
import java.awt.event.*; 

public class One implements ActionListener {
  int count; 
  public void actionPerformed(ActionEvent e) {
    this.count += 1; 
    System.out.println("Time passes... " + this.count);
  } 
  public static void main(String[] args) {
    Timer t = new Timer(1000, new One());     
    t.start(); 
  } 
}

We try this in DrJava and it works for us. 


  mouse events

  sorting

  exceptions

  key events

  gui (button, label, 

  graphics (circles, jcomponents) 

  timers (action events) 

See you Wednesday!