title: if statement dealing with boolean variable
body: <p>I want my if statement to print out student or non student based on a boolean variable isStudent but I am not quite sure how it works. When I enter boolean isStudent it automatically initializes the variable false? And when I try to use isStudent == true nothing prints out but if I use isStudent == false it prints out student and non student. Can someone explain why it does that and if I did this right?</p>
  
  <pre><code>   public class Test {
  
  public static void main(String[] args) {
          boolean isStudent = false;
              if(isStudent == false){
                  System.out.println("Student");
                  System.out.println("non-student");
              }
          }   
      }
  </code></pre>