Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

http://www.viewdocsonline.com/document/uo6ik5 I need help with the CandidateMana

ID: 3545828 • Letter: H

Question

http://www.viewdocsonline.com/document/uo6ik5


I need help with the CandidateManager class. I don't get how i am supposed to create & add a new candidate object into the arraylist with the paramaters also given in that way


What i have is:


import java.util.*;


public class CandidateManager {

public CandidateManager(){

ArrayList<Candidate> candidates = new ArrayList<Candidate>();

}

public void addCandidate(Candidate newCandidate){

newCandidate = new Candidate();

}

public void addCandidate(String first, String last, String cs110, String cs140,

String cs226, String cs249, String cs213, String cs214){

ArrayList<Candidate> list = new ArrayList<Candidate>();

list.add(new Candidate());

first = " ";

last = " ";

}


}

Explanation / Answer

When is it due ?