Course Solutions Uncategorized (Solved) : Help Java Code Issues Methods Getworth Sortrecords Giving Nullpointerexception Reason Sure Q29663401 . . . .

(Solved) : Help Java Code Issues Methods Getworth Sortrecords Giving Nullpointerexception Reason Sure Q29663401 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post