Past Announcements
- One solution for quiz 3 is here (question here). Grades and statistics are on E-Learning.
- Some suggestions for doing cool stuff with eclipse here: Eclipse Tips. I'll keep posting them as I think of them but feel free to stop by my office hours if you want to know how to do something specific, or just google "Eclipse Tutorial" ("Eclipse lessons", "Eclipse for beginners", etc.) if you want a general overview.
- There are certain practices you should follow when writing Java code - here is a fairly complete list of them: Style Guidelines. No need to memorize, just browse through them. Eclipse will actually do most of it for you if you hit ctrl+shift+f. Watch out for magic numbers.
- Here is my solution to P1: ConsoleInterface, World, Terrain, Shot, and Player. Grading revision: each person who submitted a solution will receive 10 extra P1 points and will be given the option of whether to re-allocate 5 total-grade points from P1 to the midterm.
- I/O Notes (Wednesday): Stream Tokenizer, Random Access, Properties, File Chooser, HTML Parsing example, Scanner example
- I/O Notes (Monday): UserInput, File Input, File Output, Data I/O, Object I/O, ASCII Table.
- Layout Notes: Absolute Layout and List, Box Layout, Border Layout, Card Layout, Grid Layout, Grid Bag Example. Great resource on the subject: Sun Layout Tutorial
- GUI Notes: Reinventing the Wheel, Menu Example.
- Graphics notes: SwingHelloWorld, Smiley, SimplePaint, and SimplePaintWithBuffer. Three ways to implement an action listener: here.
- Exceptions examples: UserInputExample, Account and notes.
- The Quiz 1 solution is here: Quiz1Solution (Question). Don't panic yet, you have one drop.
- Design Pattern Notes: Notes, ComparableDriver (Interface), DecoratorDriver, DecimalDriver (Wrapper), ArrayCollection (Iterator), Observer, TicTacToe (Strategy).
- Java review code here: Random, %, and Math.abs, 2D arrays, Simple OOP Examples, Abstract classes, Interface Example
- Here is a list of UML tools that will probably be much better than Visio; many generate Java code. List. Try ArgoUML. You can also hand-draw your diagrams and scan them - there is a scanner in the main lab. Important note: If you use an automated code generation tool and it creates code you don't understand, figure it out or delete it! If I ask you about something weird and you can't explain it, you will lose points!
- Use CutePDF to turn any print into a PDF. Submit PDFs for Project 0 diagrams.
- Notes for first few classes: notes1.txt and notes2.txt
- UserInput class here and the decompilation is here.
Projects