title: use ints for prop.setProperty()
body: <p>i'm trying to do a configurations file from an array of objects, where the properties are taken from a range of getters. 
  eg </p>
  
  <pre><code>    prop.setProperty("Name", bugs[0].getName());
      prop.setProperty("Species", bugs[0].getSpecies());
  </code></pre>
  
  <p>When i try, for example</p>
  
  <pre><code>prop.setProperty("Energy", bugs[0].getEnergy());
  </code></pre>
  
  <p>it says </p>
  
  <blockquote>
    <p>The method setProperty(String, String) in the type Properties is not
    applicable for the arguments (String, int)</p>
  </blockquote>
  
  <p>How would I do method of <code>setProperty(String, Int)</code>?</p>
  
  <p>EDIT*
  Also, How do i write for an array of the objects, looping <code>bugs[i]</code> doesn't seem to work either.</p>
  
  <pre><code>for (int i = 0; i &lt; bugs.length; i++) {
          prop.setProperty("Name", bugs[i].getName());
          prop.setProperty("Species", bugs[i].getSpecies());
          prop.setProperty("X", String.valueOf(bugs[i].getX()));
          prop.setProperty("Y", String.valueOf(bugs[i].getY()));
          prop.setProperty("Energy", String.valueOf(bugs[i].getEnergy()));
          prop.setProperty("Symbol", String.valueOf(bugs[i].getId()));
          }
          // save properties to project root folder
          prop.store(output, null);
  </code></pre>
  
  <p>How would i make it show the values for all the bugs, its only showing the last one?</p>