Search:

Type: Posts; User: iHank

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,136

    Re: Find first null in an array of objects

    No, Iīm at work. Do you se any direct problem with my solution. The "==" for example.

    My teacher wrote:

    // is it a free spot at index i? if(arr[i] != null) {
    ...
  2. Replies
    6
    Views
    1,136

    Find first null in an array of objects

    Hi!

    I'm a java beginner and canīt figure out whatīs wrong with my code.
    The question is: How do I find the first null in an array of objects, arr[10], and then add an object, obj, to that index....
Results 1 to 2 of 2