Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by exdox77 View Post
    the IDE tells me, "Array required, but java.util.List<Add> found" not sure what this means.

    this means that the compiler couldn't find NO class with the name Add in your code.

  2. #22
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,967
    Rep Power
    19

    Default

    No it doesn't.
    It means that the compiler found the line:
    Java Code:
    donorArray[i].getName();
    for example, except donorArray is not an Array but a List<Add>.

    To use '[i]' the object needs to be an Array.
    Last edited by Tolls; 07-13-2010 at 09:23 AM. Reason: typo

Page 2 of 2 FirstFirst 12

Similar Threads

  1. How array elements gets default value
    By Veangat in forum New To Java
    Replies: 1
    Last Post: 03-07-2010, 01:29 PM
  2. Get value of a String into elements of an Array.
    By mainy in forum New To Java
    Replies: 1
    Last Post: 08-01-2009, 09:17 PM
  3. comparing elements in array
    By garyscott101 in forum New To Java
    Replies: 14
    Last Post: 12-10-2008, 03:01 PM
  4. reference to elements in array
    By Igor in forum New To Java
    Replies: 1
    Last Post: 12-14-2007, 11:56 AM
  5. Help with array of elements
    By zoe in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •