Use the format:
super(new String[] {"true", "false"});
if MultipleChoiceQuestion contains a constructor similar to this:
MultipleChoiceQuestion(String[] questionArray)
If it contains an overloaded constructor with a List argument, as you say, for example:
MultipleChoiceQuestion(List<String> questionList)
then you can use:
super(Arrays.asList("true", "false"));
or if you want to use an ArrayList :
super(new ArrayList<String>(Arrays.asList(new String[] { "true", "false" })));
source share