title: Object position in array
body: <p>I have an array of <code>Object</code>s. Now my question is how I can find out what position the object is in from within it?</p>
  
  <p>My object array</p>
  
  <pre><code>public myObject[] objects = new myObject[10];
  </code></pre>
  
  <p>The constructor of myObject</p>
  
  <pre><code>public myObject(){
      int objectID = 0; //Here should be the code to find the position in the array
  }
  </code></pre>