Udel CISC370-010 2000F info
Here are some links & help for starting out.
- Web Page: You have to set up a web page for this
class. Instructions on how to set up your web page on the composers (ie.
using your udel account) can be found
here.
If you don't know HTML, you should get a general idea about it-
Check out either:
A Beginners Guide to HTML or
The HTML Quick Reference Guide.
- JDK: You will also need the Java(TM) 2 SDK,
Standard Edition for this class. This is avaliable on the composers
(strauss & copland for example) in /usr/jdk1.2.2/.
You could also download the JDK from Sun (it is free). Try
java.sun.com for your version.
Linux users should try
www.blackdown.org
for the latest linux ports.
Also note that you will need the Java Plugin (from the sites above) if you
want to see your applets on your own computer's web browser.
- Documentation: To start you out, you will need
some documentation that you can use while programming. The best web
source is the Java Tutorial found at
java.sun.com
(it is also mirrored
here
since java.sun.com is often bogged down). I recommend that you get your
hands on Java in a Nutshell by David Flanagan (click
here to purchace direct).
I find that it is a quick and easy to use reference that is helpful for
a quick solution.
Some help with javadoc
import ...
//comment for main program after import statements
/**
* @author Cool Programming Dude
* @version 1.0
*
* A simple program
*/
...
//class....
public class Helper
{
/**
* @param String hello, String goodbye
*
* A simple method
*/
//now a method
public void printMe(String hello, String goodbye)
{
...
} //end method
} //end class
Such comments will show up in your html pages produced by the javadoc program.
Javadoc is found in the same bin directory as java, javac, etc... Try
% javadoc -help
to see a list of parameters for running the program.
Here is what you need to do with your source:
% javadoc -author -version Sourcecode.java
(-version and -author forces javadoc to include the author and version
tags)
Then move all the .html files produced by the program to your webpage under
something like ~/public_html/cisc370/hw1/.
Naming conventions
One other thing to mention is the naming convention in your programs:
All class names should begin with an uppercase letter. For example in
Mysource.java, the class name will be Mysource.
All methods should start with a lowercase letter and if it is more
than one word, the second word and so on should be caps. Ex:
//....
public void print()
//...
public void displayMe()
//...
public void displayInMyPage()