title: else statements won't execute in an if else statement
body: <p>For some reason, no matter what I do, every time I make an if else statement in my Java programs, it either only ever executes the if statement, or both the if and else statement.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Week06_NelsonPimentel_Assignment {
      public static void main(String[] args) {
          Scanner input = new Scanner(System.in);
          int[] validnum;
          int i = 0;
          validnum = new int[5];
  
          System.out.println("Please enter a number between 50 and 100");
  
          while (i &lt; validnum.length) {
              validnum[i] = input.nextInt();
  
              if (validnum[i] &lt;= 101 || validnum[i] &gt;= 49) {
                  System.out.println("yes");
                  i++;
              } else {
                  System.out.println("no");
              }
          }
  
      }
  
  }
  </code></pre>