Class Material
Previous Courses
COS 225 (Spring 2008)
COS 225 is an introduction to programming and design using the Java Programming Language. Some useful resources for the class are listed below.
Course Home Page
Java Programming Resources
- Java 6 API
- Java 6 JDK
- Javadoc Documentation
- The Java Programming Language Specification
- The Java Virtual Machine Specification
Popular Java IDEs (Integrated Development Environments)
- Dr. Java (drjava.org) - Fundamentally sound, simple IDE that is great for first time Java programmers. Facilitates JUnit testing, Javadoc creation, and contains a useful interaction panel.
- Eclipse (eclipse.org) - Robust industry tool backed by IBM. Contains tools for most Java development. Uses plug-ins to allow for a variety of different configurations and additional tools. Typical tools include JUnit testing, Javadoc creation, CVS, SVN, etc.
- Netbeans (neatbeans.org) - Another very powerful IDE. Netbeans is backed by Sun Microsystems. It is very robust and has a variety of tools and add-ons. It supports JUnit testing, Javadoc creation, CVS, and has excellent GUI and Web application support.
Lab Material Covered
- Week 1 (1/14) Hello World and introduction to Dr. Java.
- Week 2 (1/21) Example project submission with Rectangle and Circle classes. Additional resource: doej-p1-01.zip
- Week 3 (1/28) The basics of a class and an introduction to test cases.
- Week 4 (2/04) Introduction to the
Scannerclass and a look at the meaning of equality in Java. Additional resource: EqualityAndScanner.zip - Week 5 (2/11) Testing: A comparison and analysis of JUnit testing and functional testing.
- Week 6 (2/18) More on handling user input with the
Scannerclass. Addtional resource: nimGame.zip - Week 7 (2/25) Assertions in Java: Preconditions, Postconditions, Invariants, and the Java assert statement.
- Week 8 (3/17) Packaging programs in Java. Jar files and the jar tool. Using another programmer's implementation. Example using the applet console.
- Week 9 (3/24) Eclipse IDE: Looking into some of the basic features of the Eclipse development platform.
- Week 10 (3/31) File I/O: Using the Scanner class to read from a file. Using the PrintWriter class to write to a file.
- Week 11 (4/7) Interfaces: An exercise is given that demonstrates how to develop the concrete implementation for an interface and integrate it into a project. Source code and examples are shown in the interfaceExample.jar.
- Week 12 (4/14) The List Interface: Introduction to using generics in Java. Exercise involves creating an array based list implementation. The library is containers.jar.
- Week 13 (4/21) Using Comparators. Function object example using shapes and sorting based on the comparator. The library is shapes.jar.
COS 226 (Fall 2008)
COS 226 is a data structures course taught using the Java Programming Language. While the course is taught in Java, as with other courses, the class is language independent. Students taking this course should have a strong programming knowledge. Typically students take COS 225 before taking this class.
Course Home Page
Course News Group
Data Structure Resources