Question: k set the instance variable id to the parameter provided * if i is less than 1, id should become 1 k otherwise, id should

k set the instance variable id to the parameter provided * if i is less than 1, id should become 1 k otherwise, id should become i. * @param i private void setId(int i) //to be completed k* * set instance variables name, id and marks to corresponding parameter provided. k use the setter to set the id. you should make a deep copy for marks, NOT A SHALLOW COPY *@param name * @param id *@param marks public GradebookEntry (String name, int id, ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
