title: Is is possible to make a method execute only once?
body: <p>I have a for loop and structure like this:</p>
  
  <pre><code>for(....)
  ....
  ....
  if(isTrue)
  ... do something..
  .. method to be executed once (doTrick) is declared outside for loop.
  ....endif
  endfor
  
  public void doTrick()
  ...
  ...
  ..end
  </code></pre>
  
  <p>Is it possible for a method in for loop to be executed only once?</p>