title: How to get elements from an Object[] in Java?
body: <p>I have the following lines of Java code:</p>
  
  <pre><code>Object[] results = api.getProjects();
     for(int i=0; i&lt;results.length; i++){
         System.out.println(results[i].toString());
     }
  </code></pre>
  
  <p>An here it is the output:</p>
  
  <pre><code>TestProject [id=1, name=Test Plan, prefix=MA, notes=, enableRequirements=true, enableTestPriority=true, enableAutomation=true, enableInventory=true, isActive=true, isPublic=true]
  </code></pre>
  
  <p>My concern is how I can get only the wanted elements? (i.e: "name" and "id")</p>