CS1336.501 Computer Science 0 Monday, Wednesday 7:00 to 8:15
Instructor: John Cole Room ECS 2.415
Teaching Assistant: Yan Tang, in 4.209 Last update: 10/25/2009
Syllabus Schedule (Subject to change)
Book: Starting Out with Java, Fourth edition, by Tony Gaddis (I understand this edition won't be available until September 11.  The Third Edition is fine too.

This is the introductory Java programming class for those with no programming expereience, which also teaches object-oriented design,

Homework Assignments:
Assignment 1: Celsius to Fahrenheit Conversion, due September 9, 2009.
Assignment 2, Largest and Smallest, Due October 5, 2009.

Assignment 3, Stock Prices, Due October 21, 2009
Assignment 4, Employee class, Due November 9, 2009
Assignment 5, Arrays, Due November 30, 2009

In-Class Notes.  These are what I wrote using WordPad during class.  If they don't make sense, well, you kind of had to be there. :) 

Link to program from 9/28/2009
Code fragment from 10/13/2009.  I decided not to post the entire program, so you'll have to create the wrapper around this and define the variables. lastIx = strInput.lastIndexOf('\t');
 System.out.println("Last Tab is at: " + lastIx);
 strPrice = strInput.substring(++lastIx); System.out.println(strPrice);
 dPrice = Double.parseDouble(strPrice);
 dateIx = strInput.indexOf('\t');
System.out.println("Dateix=" + dateIx);
strDate = strInput.substring(0, dateIx); System.out.println("Date is: " + strDate);
 lastIx = strInput.indexOf('\t', dateIx+1); System.out.println("lastIx finding second tab: " + lastIx);
Code fragment from 10/19/2009.  This is the method that writes to a file.

// write to a file. the parameter is the file name. 
public static void writeToFile(String strFilename) throws IOException
 {
 FileWriter fw = new FileWriter(strFilename, true);
PrintWriter outFile = new PrintWriter(fw);
outFile.println("Hello CS1336");
int ix; for (ix=0; ix<10; ix++) { ix++;
outFile.println(ix);
}
 System.out.println("x=" + ix);
 outFile.close();
 }

Java documentation link
NetBeans Java IDE