Help with this Java code, I am having issues with the methodsgetWorth and sortRecords they are giving a NullpointerException forsome reason and not too sure the methods after that either. Pleasedont change the method headers. The first 2 classes provided areall done and working, the two methods mentioned are in theGradebook class.
CODE-
ASSESSMENT CLASS-
package toBeCompleted.stage1;
public class Assessment {
private String title;
private double worth;
/**
* DO NOT MODIFY
* @return worth
*/
public double getWorth() {
return worth;
}
/**
* DO NOT MODIFY
* @return title
*/
public String getTitle() {
return title;
}
/**
* IMPORTANT setWorth is set to be a private method as
* we don’t want its value to change after instantiation.
* set the
PayPal Gateway not configured
PayPal Gateway not configured