Check if StringBuffer is empty
<p>Can anyone please tell me how I can use if-else condition with StringBuffer to check if it is empty? </p>

<p>I am expecting something like this</p>

<pre><code>if (Stringbuffer is empty){ 
    // some condition 
}
else {
   // some other condition
}
</code></pre>