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 ?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.