Java code help please:-
package toBeCompleted.stage3;
import java.util.*;
import toBeCompleted.stage1.Assessment;
import toBeCompleted.stage2.GradebookEntry;
public class Gradebook {
private ArrayList<Assessment> assessments;
private ArrayList<GradebookEntry> records;
/**
* DO NOT MODIFY
* @return number of records
*/
public int numberOfRecords() {
return records.size();
}
/**
* DO NOT MODIFY
* @return number of assessments
*/
public int numberOfAssessments() {
return assessments.size();
}
/**
* DO NOT MODIFY
*/
public String toString() {
String header1 = “Asssessment title: t”;
String header2 = “Asssessment worth: t”;
double totalWorth = 0;
for(Assessment a: assessments) {
header1 = header1 + a.getTitle() + “t”;
header2 = header2 + “(” + a.getWorth() + “)t”;
totalWorth += a.getWorth();
}
header2 = header2 + “(Total “+totalWorth+”)”;
String data = records.toString();
data = data.replace(“[“, “”);
data = data.replace(“]”, “”);
data = data.replaceAll(“, “, “”);
return header1+”n”+header2+”n”+data;
}
/**
* make a deep copy of the
PayPal Gateway not configured
PayPal Gateway not configured