title: Tring to check for multiples of another number in java
body: <p><em>Before I say anything, please note I am new to java so if you have to put jargon in your answers, please tell me what it means. Thanks!</em>
  I've been googling for an hour to see if anyone else has tried doing this. Am pretty sure I'm not the only one haha, maybe I'm just a bad googler, but I looked for libaries that emplemented this and couldn't find any, so I decided to try a way using brute force:
  I used 4 to test it. It should be something like [1.0, 4.0, 2.0].
  However it just returns [1.0 and 4.0]
  Why? lol thanks for the help. If you need the whole program create a comment and I'll give you the github address (I'm creating a program that solves quadratic equations)</p>
  
  <pre><code>package quadraticResolver;
  
  import java.util.Arrays;
  
  public class factorisedEquation {
  
      public factorisedEquation() {
          System.out.println(Arrays.toString(getMultiples(4))); //test
      }
  
      private double[] addElement(double[] array, double appendNum) {
  
          array = Arrays.copyOf(array, array.length + 1);
          array[array.length - 1] = appendNum;
          return array;
      }
  
      private double[] getMultiples(int product) {
          double[] multiples = new double[]{1, product}; //The array
  
          for (double i = 0.01; i &lt; product; i = i + 0.01) {
              if ((product % i == 0) &amp;&amp; (i != 1)) { //if Divisible by the argument product, add it to the array.
                  multiples = addElement(multiples, i);
              }
          }
          return multiples; //return the new array
      }
  
  } 
  </code></pre>