Cannot resolve method in java

Make sure your container (using generics) holds the Question type:

ArrayList<Question> questions = new ArrayList<Question>();

That way JAVA knows which method to call.

Leave a Comment