The error message:
Says that the value returned by the get() method (String) can not be converted to the type that the chooseNewQuestion method is supposed to return (Question).
Can the ArrayList:...
Type: Posts; User: Norm
The error message:
Says that the value returned by the get() method (String) can not be converted to the type that the chooseNewQuestion method is supposed to return (Question).
Can the ArrayList:...
How is the variable questions declared? Can you post the code that shows?
It appears as if questions contains String but the method is supposed to return a Question object.
Note: code tags use [] not <>s
You need to use a reference to an instance of an ArrayList not the name of the class: ArrayList. For example: questions.get(....
Using the class name with its...
Please explain what the problem is.
Please edit your post and wrap your code with code tags:
**YOUR CODE GOES HERE**
to get highlighting and preserve formatting.