



Thu Dec 11
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
Thu Nov 20
Fri-Sun Nov 14-16
Thu Nov 13 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 11Tomcat 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
Tue Nov 4
Thu Oct 30
Tue Oct 28