is there a equivalent of StringBuilder for boolean in java?
<p>I want my custom functions to modify / toggle a <code>boolean</code> variable. Let's say that I have code like</p>

<pre><code>if (OK2continue) { findANDclick(new String[]{"id", "menuButton"});}
if (OK2continue) { findANDclick(new String[]{"src", ".*homeicon_calendar.*"}); }   
if (OK2continue) { findANDclick(new String[]{"src", ".*cycle_templates.*"});
</code></pre>

<p>I want to make sure that the flow of execution stops once any of the <code>findANDclick</code> functions toggles the variable <code>OK2continue</code></p>

<p>I managed my functions to modify a <code>String</code> variable using <code>StringBuilder</code>. </p>

<p>Can I do the same for <code>boolean</code> type of variable?</p>
