title: Java: Increment by 2 the two inputted integer
body: <p>Can someone help me please.. just starting java..:(
  How can I display all possible values based on the given minimum input value, maximum input value and the incrementing value?</p>
  
  <p>for example:
  min value: 1
  max value: 10
  increment value: 2</p>
  
  <p>the result will be:  1, 3, 5, 7, 9</p>
  
  <p>this is what i got so far..</p>
  
  <pre><code>public class DisplayIncrement {
  public static void main(String []args){
  
      int min, max, increment;
  
      Scanner in = new Scanner(System.in);
  
      System.out.println("Enter min value: ");
      in.nextInt();
      System.out.println("Enter max value: ");
      in.nextInt();
      System.out.println("Enter increment value: ");
      in.nextInt();
  
      int i;
      for(i=0; i&lt;=10; i+=2){
      System.out.println(i);
      }
  }   
  </code></pre>
  
  <p>}</p>