- UML Example.
- Code Examples from a textbook formerly used with this course:
- To get the code from this textbook into an Eclipse project for
easy examination, please carry out the following steps:
- Use your favorite web browser to download the appropriate zip
file from the author’s website. I prefer the zip file that is
organized by chapters:
- In Eclipse, select "File > Import > General > Existing Projects
into Workspace > (Next) > Select archive file" then browse to find
the zip file you just downloaded and select "Finish".
Presto! You should have all the source code from this textbook in
a giant Eclipse project organized by chapters.
- Code Examples from Previous Semesters:
- To get the code from previous semesters that I have used in class,
please go to the Desire to Learn website for the class and look under
- Generics Demo:
- For comparing objects, the Making Java Objects Comparable tutorial found at the OnJava.com website is one example. I have updated the code found there to use generics, added one more example, and put the results in an Eclipse project zip file.
- GUI demos:
- The MVC Circle example from the textbook, along with my version that uses a timer for the controller, are available as an Eclipse project zip file.
- A cleaner version of MVC using the Circle example as an Eclipse project zip file.
- An updated version of the clean MVC Circle example using Java 7 as an Eclipse project zip file.
The MVC diagram used in class comes from a Java BluePrints document entitled "Model-View-Controller" from Sun. The same diagram, as well as material related to an alternate MVC approach, are included in the article "Java SE Application Design With MVC" from Sun. Unfortunately, after acquiring Java from Sun, Oracle has not retained these articles in tact on their website. However, the first of these articles is available as a PDF from a computer science course website at Duke University and I have created a PDF of the second article for your use.
- The new MVC and recursion example as a an Eclipse project zip file. In this example, recursion is used to generate all combinations of a string entered by the user, as well as all permutations of those combinations. The user enters the string and sees the resulting combinations and permutations of combinations via a GUI implemented using the MVC design pattern.
- Don’t forget that there are lots and lots of examples in the 2DL page for the class!