Adventures in Computing
Yo, baby!
Yo, baby!
Adventures in Computing
Adventures in Computing
Adventures in Computing
Adventures in Computing
Thu Dec 11
Here's a link and a program we might develop based on the info presented there.

import java.util.regex.*;
import java.util.*; 

public class One {
  public static void main( String args[] ){
    Scanner s = new Scanner(System.in); 
    String line; 
    Pattern circleMatch = Pattern.compile( "Circle radius (\\d+) location (\\d+) (\\d+)" );
    Pattern rectangleMatch = Pattern.compile( "Rectangle size (\\d+) (\\d+) location (\\d+) (\\d+)" );
    System.out.print("Enter>"); 
    while (s.hasNextLine()) {
      line = s.nextLine(); 
      if (line.equals("done")) break;
      System.out.println(line); 
      Matcher circle = circleMatch.matcher( line );
      Matcher rectangle = rectangleMatch.matcher( line );
      if (circle.find()) {
        System.out.println("I see a Circle, radius " + circle.group(1) + " at (" + circle.group(2) + ", " + circle.group(3) + ")"); 
      } else if (rectangle.find()) {
        System.out.println("I see a Rectangle."); 
      } else { 
        System.out.println("I don't see what you're saying."); 
      } 
      System.out.print("Enter>"); 
    }     
  }
}

Tue Nov 25
Link to be used early in class today, and another one.

Thu Nov 20
Code developed in class today.

Fri-Sun Nov 14-16
The other two pages (What's Due, Class Notes) are being updated this weekend.

Thu Nov 13
These are the files needed for the web chat application:
     chat/HttpMessage.class
     chat/ChatApplet.class
     chat/HttpMessage.java
     chat/WEB-INF/lib
     chat/WEB-INF/classes/MessageSource.class
     chat/WEB-INF/classes/MessageSink.class
     chat/WEB-INF/classes/Chat.java

     chat/WEB-INF/classes/ChatServlet.class
     chat/WEB-INF/classes/Chat.class
     chat/WEB-INF/classes/ChatServlet.java
     chat/WEB-INF/classes
     chat/WEB-INF/web.xml

     chat/WEB-INF
     chat/index.html
     chat/ChatApplet.java
     chat
Note that echo $JAVA_HOME and which javac/java should return consistent outputs/values.

A common mistake would be to use jdk1.5 for JAVA_HOME and jdk1.6 for javac/java. (You get bad version number in class then...)

Tue Nov 11
Here are the notes from today's class.

Tomcat notes: chapter 17, here.

Beemer, Joseph Michael   jmbeemer 13100 13101
Blechman, David Michael  dblechma 13102 13103
Ericson, Dana M          dericson 13104 13105
Momynkulov, Dauren       dammomyn 13106 13107
German, Dan-Adrian       dgerman  13108 13109
Jessee, Lloyd Douglas    djessee  13110 13111
Johnson, Charles Michael cj49     13112 13113
Ruble, Kevin Joseph      keruble  13114 13115
Schmidt, Garrett         schmidtg 13116 13117
Tomlinson, Evan Kyle     ektomlin 13118 13119
Mohamed, Emad Soliman    emohamed 13120 13121
Quinley, Jason Cecil     jquinley 13122 13123

Fri Nov 7
Here are the notes from last night.

Tue Nov 4
Notes from today's class (from now on always in LI503).

Thu Oct 30
Class is still in LI503 and we met there.

Tue Oct 28
Class starts today in LI503. We meet in LI402.