title: condition statement without if and switch
body: <p>I have this code :</p>
  
  <pre><code>public static void main(String[] args){
      boolean greeting = true;        //or false
      if(greeting)
          hello();
  }
  
  public static void hello(){
      System.out.println("Hello")
  }
  </code></pre>
  
  <p>I want to call hello method without using (if,switch) if the value of greeting is set to true</p>
  
  <p>is it possible to re-write this program without using if statement or switch ? if so how?</p>