title: Another way of writing If statement in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/798545/what-is-the-java-operator-called-and-what-does-it-do">What is the Java ?: operator called and what does it do?</a>  </p>
  </blockquote>
  
  
  
  <p>Maybe this is a duplicated question to some other questions here but I could not find it.</p>
  
  <p>Yesterday I saw a guy using a new way of writing the if statement by using <code>?</code> and <code>:</code> and I'm not sure what do they all mean.</p>
  
  <p>If someone could point me out to a tutorial or an already answered question I would so much appreciated.</p>