Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    8
    Views
    811

    [SOLVED] Re: Need help with my Java assignment

    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:...
  2. Replies
    8
    Views
    811

    [SOLVED] Re: Need help with my Java assignment

    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.
  3. Replies
    8
    Views
    811

    [SOLVED] Re: Need help with my Java assignment

    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...
  4. Replies
    8
    Views
    811

    [SOLVED] Re: Need help with my Java assignment

    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.
Results 1 to 4 of 4