java equivalent of PHP's implode(',' , array_filter( array () ))
<p>I often use this piece of code in PHP</p>

<pre><code>$ordine['address'] = implode(', ', array_filter(array($cliente['cap'], $cliente['citta'] ,$cliente['provincia'])));
</code></pre>

<p>it clears empty strings and join them with a ",". If only one remains it doesn't add an extra unneded comma. It doesn't add a comma at the end. If none remains it returns empty string.</p>

<p>Thus i can get one of the following results</p>

<pre><code>""
"Street abc 14"
"Street abc 14, 00168"
"Street abc 14, 00168, Rome"
</code></pre>

<p>What is the best java implementation (less code) in Java without having to add external libraries (designing for android) ? </p>
