CSC 243.010 - Java Programming,
Old Main 136, TuTh 9:30-10:50 AM.
CSC 243.020 - Java Programming,
Old Main 136, TuTh 12-1:20 PM.
Dr. Dale
E. Parson
Spring, 2010 Office Hours:
M 10-11:30, Tu 2:30-3:30, W 10-11:30, Th 1:30-2:30, and by
appointment
First
day
handout (syllabus that is specific to this
semester).
Instructions for setting up and verifying your Java compile / test
environment in MS Word
and PDF format.
Lecture notes
Example code is at
/export/home/faculty/parson/JavaLang on
bill.kutztown.edu
My javadoc is at http://bill.kutztown.edu/faculty/parson/javadoc
Lecture slides for week 1 on
running a program.
Lecture slides for
week 2 on data
types and control constructs.
Lecture slides
for
week 3 on classes, strings, and text I/O.
Lecture slides
for
week 5 on interfaces and inheritance.
Lecture slides
for
week 7 on exceptions.
Lecture slides
for
week 9 on generic interfaces and classes.
Changing
the
Look
and
Feel of Swing.
RGB Color
Wheel for preparing for assignment #4.
Assignments
Assignment # 1
on checking words from a ScrabbleBoard for membership in a dictionary
of words is due by 11:59 PM on Thursday, February 18.
Assignment # 2
on integrating spell checking and a custom dictionary into classes
ScrabbleGame, ScrabbleBoard and new class SpellingException is due by
11:59 PM on Thursday, March 18.
Assignment # 3
on writing, testing and documenting a generic interface
and a generic class to replace the use of HashSet
from Assignment #1 is due by
11:59 PM on Tuesday, April 6.
Assignments # 4
and # 5
on constructing a graphical user interface using AWT and Swing are due
in two parts by the end of day on April
20 and May 2
respectively.
Testing guide
for assignment #5 shows how to use the word-to-MIDI GUI and
terminal screen trace of MIDI translation events to help test and debug.
Links to Java DOCUMENTATION and
download.
http://java.sun.com/javase/6/docs/api/index.html
documents the CLASS LIBRARY.
One-line summary of UNIX
commands
(thanks to Professor Schaper).
http://java.sun.com/javase/6/docs/
has all on-line docs.
The MIDI
Technical Fanatic's Brainwashing Center is the best site I know of
for MIDI tutorials
and documentation. It includes technical
specifications and a table of General
MIDI
Instrument
Patches
(voices).
http://java.sun.com/javase/downloads/index.jsp
has downloads
for JDK 1.6 docs and tools (compiler,
etc. for Windows).
Download Java SE Development Kit (JDK)
6 -> Download -> Continue -> Continue,
then click the file, ignoring the "Sun
Download Manager."
After installing JDK 1.6,
go
to
Windows
Control
Panel
->
System
->
Advanced
->
Environment
Variables
and
set system variable CLASSPATH to your
JavaLang directory. If CLASSPATH is already there, append a semicolon
followed by your JavaLang path to the string that is there.
Download site for FileZilla
file transfer utility for transferring files between bill and your PC,
or you can use whatever you already have.
Download
site for
Eclipse IDE/Debugger for Java.
Use the "Eclipse IDE for Java
Developers," then update it as follows.
Download and unzip Eclipse.
Go into the Eclipse directory and run
the eclipse executable file.
Make sure that your Eclipse workspace is in a directory that
is completely different from any of your source code projects. Do not mix Eclipse's meta-data with your
programming projects!
Pitfall
#1: After you
successfully install and configure Eclipse, exit
Eclipse and reboot your PC. Problems that I have encountered may be due
to networking problems in Old Main, but I have had to do this step on
two machines after Eclipse went into a hung state, so you might as well
do this after setting up Eclipse.
Pitfall
#2: If you
remove a Java project such as JavaLang, a) do not check the box to
actually remove the Java files, and b) after removing the project,
exit Eclipse and go into the project directory with the Windows
Explorer and remove files .project and .classpath..
Pitfall
#3: Whenever you copy files from bill into a Java project
under Eclipse, make sure to right-click "Refresh" (F5) on your Java
project in Eclipse's "Package" panel.
We will go over Java
Projects, source
editing and debugging in class.
http://www.gnu.org/software/make/manual/
has
the
gmake
manual.
http://cs.armstrong.edu/liang/intro7e/toc.html
has downloads from our textbook.