java - Adding item to the quizQuestion ArrayList -
hey guys have method
public void addquestion(question question) { }
i have created arraylist
in class section
private arraylist<question> quizquestion;
and have initialised arraylist
in constructor typing
quizquestion = new arraylist<question>();
what type in method above can add questions question arraylist
. :)
public void addquestion(question question) { quizquestion.add(question); }
Comments
Post a Comment