title: Java: Create method to print all multiples of 3 between 1 and n?
body: <p>So the question is asking to create a method that will take an integer x as a parameter and print out all integers from 0->x that are multiples of three.</p>
  
  <p>I can print out the number of times three divides x like so:</p>
  
  <pre><code>  public int Threes(int x){
  
      int i = 0;
      for(int counter = 1; counter &lt;= x; counter++){
          if (counter % 3 ==0){
              i ++;
          }
  
      }
          return i;
  </code></pre>
  
  <p>but I'm not sure how to print out each multiple of 3!?</p>