Instructions: Answer as many of the following questions as you can during the lab period. If you are unable to complete the assignment during the lab period it is strongly recommended that you complete it on your own.
Getting Ready: Before going any further, you should:
/**
and end with */
. (Lines in between the start and end
markers may begin with a *
or not, as you prefer.)
This part of the lab will help you get started with javadoc.
AudioTrack.java
, Playlist.java
,
and Track.java
in your editor. Briefly review
the source code.
javadoc *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox). This will
probably involve something like clicking on File
and pulling down to Open or Open File.
padWith0()
is not included
in the page that was generated for the Track
class.
String
class?
/**
* Explicit Value Constructor
*/
above every constructor in all of the classes.
javadoc *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox).
*
* @version 1.0
* @author Your Name Here
to the block comment at the top of all of the classes (replacing
Your Name Here
with your name).
*
* @param artist The name of the artist
* @param title The title of the AudioTrack
* @param hours The number of hours in the length
* @param minutes The number of minutes in the length
* @param seconds The number of seconds in the length
* @param normalChannels The number of normal channels
* @param centerChannels The number of center channels
to the block comment at the top of the constructor in the
AudioTrack
class.
*
* @return A String representation of the channels (e.g., "5.1")
to the block comment at the top of the getChannels()
method AudioTrack
class.
javadoc *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox).
options
(with no file extension),
add the following line to it:
-bottom "James Madison University, Department of Computer Science"
and save the file. (Hint: Make sure the file was saved as
options
and not, say, options.txt
.)
javadoc @options *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox).
-footer "<img src='jmucs.gif'/>"
-header "<img src='jmucs.gif'/>"
to the file named options
and save it.
javadoc @options *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox).
-stylesheetfile "jmucs.css"
to the file named options
and save it.
javadoc @options *.java
index.html
with the WWW browser
of your choice (e.g., Internet Explorer, Firefox).
Copyright 2011