I need help with my Java homework

CSIT 254 Programming Lab 3 – Java Review
Overview
This lab is meant to demonstrate the use of Javadoc comments in a class. The code for Lab3 is mostly
written for you, based on Chapter 3 and the power point slides/video provided for you. Please make
sure you update the Javadoc comments correctly and look at the video of Java review I gave you the first
week of class. You should also look at the code to make sure you understand it, and make the following
changes:




Add Javadoc comments
Add code for the 2 constructors
Add code for getCapacity()
Add code for countOccurrences()
(based upon the power point slides we went over in class)
Grading Rubric
• Code for two constructors (10 points)
• Code for getCapacity (10 points)
• Code for countOccurrences (10 points)
• Javadoc comments (70 points)
For this lab, all you need to do is update StringBag.java. Although you are only updating the one .java
file, please zip up the NetBeans project and submit to Canvas.
1
Writing and Demonstrating the addThem
Method
/**
The addThem method adds the values of the input
parameters and returns the sum.
@param num1 The first integer to add.
@param num2 The second integer to add.
@return The sum of the two input numbers.
*/
public int addThem(int num1, int num2)
{
return num1 + num2;
}
6-1
Notes
 There is a brief, overall summary of the method,
using complete sentences.
 Use @param for each parameter being used.
 After @param, put the name of the parameter and
then a brief description. Use an English-like
description (not code-like) and don’t use variable
names, but describe the variable.
 Use @return and then describe what is being
returned
6-2

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER