title: java - check all of array values then check the else if
body: <p>i have a for loop that i want to check some values in my array</p>
  
  <pre><code>for (Hero myHeroes : heroes) {
                  if (myHeroes.getCurrentHP() &lt;= 60) {
                      world.castAbility(hero, healerHeal, myHeroes.getCurrentCell());
                  } else if() {
  
  
                  }
              }
  </code></pre>
  
  <p>what should i do if i want to check all of <code>myHeroes</code> <code>HPs</code> and after that if they weren't below 60 check the else-if part</p>
  
  <p>( sorry if my english is bad )</p>