Menu

The field ArrayList<Book>.size is not visible

dilou
2007-12-31
2013-04-09
  • dilou

    dilou - 2007-12-31

    Hello,
    Thanks again for this tutorial. It is really really helpful.

    I am now in lesson 15 and in the toString method of the my library class, I have the compliling error:
    "The field ArrayList<Book>.size is not visible."
    Quick fix suggests to
    "rename in file (CTRL+2, R direct access)".

    Do you have any suggestion?

    I thank you in advance.
    Dilou Dupont

     
    • Mark Dexter

      Mark Dexter - 2008-01-01

      Hi Dilou. It's hard to tell from just the error message. Can you please post the entire MyLibrary.java file and then perhaps I can help you identify the problem. Thanks. Mark

       
    • dilou

      dilou - 2008-01-02

      Hello,
      May be because of new year it is now evident to me; I forgot () after size, therefore it was wonsidered as an attribute.
      Sorry for the question and thank you for your reply.
      Dilou

       

Log in to post a comment.