Using JavaDoc
You are to use the following code which you will then
add comments to in the Javadoc fashion. Making sure
you place comments before each class, and method .
Make sure you use at a minimum the following special
Javadoc comment features in the appropriate places:
- @author
- @param
- @return
- @since
Then you are to create on-line materiasl using javadoc
on the commented java file you created. View the HTML
documentation produced using a Web browser and show the
results to your instructor.
code:
class Student
{
String Name;
float age;
int SSnumber;
Course class1;
void register(String classname, int section, String semester, int year)
{
class1 = new Course(classname, section, semester, year);
System.out.println("You are now registerd for: " + classname + " section " + section);
}
}
class Course
{
String name;
int section;
String semester;
int year;
String Instructor;
Course(String c, int s, String sem, int y)
{ name = c;
section = s;
semester = sem;
year = y;
}
void SetInstructor(String n)
{
Instrucotr = n;
}
}