| Date |
Topic(s) |
| 2012-09-05 |
Introduction
- (lecture)
- Help with installing java and running a program
- Running a program (old tutorial that is mostly replaced by the above one but might be worth reading if above is missing something)
- HelloWorld.java You can download this version directly. If you cut and paste in to notepad then make sure to be careful that the file is exactly HelloWorld.java and not helloworld.java or HelloWorld.java.txt or "HelloWorld.java"
- If you are having trouble finding the jdk 6 for windows 64 bit systems on the new layout of the page, you can try the following link. http://download.cnet.com/Java-SE-6-0-JDK-6/3000-2212_4-10857945.html
- I put together a list of some helpful command line tips to help you navigate the terminal: Command line tips You may find this useful in trying to run java from the command prompt or terminal window.
- Link to socs linux seminars (not required) In class I mentioned tutorials given by the CS deparment on linux. The information (which is outdated but will be updated at some point can be found at the link).
- Link to textbook
(Sorry the link from the original version of the slides did not work. Click the java pdf from the link--Dan)
|
| 2012-09-07, 2012-09-10 |
What is programming? Structure of a Java program.
|
| 2012-09-12, 2012-09-14, 2012-09-17, 2012-09-19 |
Variables, expressions, and types; Reading from the keyboard; Writing to the screen.
- Unit2
- Someone in class asked about a recommended program to write Java in for Mac. I forgot to mention in today's class, but a good program (which also works on Windows if you prefer it to notepad++ ) is a program called Dr. Java. You can download and install it at http://drjava.sourceforge.net
- lecture notes rearranged -This is the lecture note version used in class. It is the same as above but I rearranged the order a little bit. They are identical otherwise
|
| 2012-09-21, 2012-09-24, 2012-09-26, 2012-09-28 |
Using library methods, writing your own methods, if statements, boolean expressions, and comments.
|
| 2012-10-05,2012-10-10
,2012-10-12 |
Loops and iterative methods: while loops, for loops, nested loops, static variables.
|
| 2012-10-15, 2012-10-17, 2012-10-19 |
Arrays, Basics of reference types, Examples of loops
|
| 2012-10-22 through 2012-10-31 |
Object Oriented Programming basics
- Unit6 (draft)
- Point.java
- GPSProgram.java (Demonstrates 3 ways of calculating the same thing. One with 2 arrays, one with a 2d array, one with a Point object defined above. You need to compile the above with the Point.java file since it uses it.
- Point2.java Updated class to use private properties
- UsingPoint.java (Demonstrates using the new Point2 class with getters setters and constructor)
- Card.java Card example mentioned in notes for unit 6. It should be viewed at the same time as CardGame.java . It is another example of using objects. (We'll get to this in class next week)
CardGame.java
- Notes from class November 2nd
- Recipe class notes (needs some cleaning up to compile)
- Recipe zaar notes
| 2012-11-14, 2012-11-16 |
More advanced objects/generics: ArrayList, HashSet, HashMap
|
| Week of November 19th |
Recursion
- Unit8 (updated March 24th)
- Fibonacci.txt
- FibSlow.java (This took 1 hour to run on my computer and calculate fib(55). If you increase the size of the input by 1, I expect it to be 2 hours, increase by 2 is 4 hours, etc. Each time you increase the size by 1 it doubles the size)
- FibFast.java (This was basically instantaneous to calculate fib(65). The biggest limitation is running into the maximum size of an int. Perhaps we could use long to avoid this issue or at least delay that)
|
| week of November 26th |
Exception Handling
|
| November 30th until end |
Review Examples
|
|