java: how to handle null in several function parameters at once?
<p>I have a function which takes in three strings, and any of them or all three might be null (not known in advance).  What is the best way to handle this?</p>

<p>The base case is this:</p>

<pre><code>public String doStuff(String a, String b, String c) {
  //do stuff
}
</code></pre>

<p>If this is called with nulls in any of the strings, I get this error:</p>

<pre><code>-&gt; doStuff("test", null, null)

Unable to execute method public java.lang.String
doStuff(java.lang.String,java.lang.String,java.lang.String)  
on object 1c52ac68 of class test with arguments {Wap:java.lang.String, null, null} of size 3
</code></pre>

<p>I guess I could overload this for all the possible permutations of nulls in the three inputs, but is there a better way?</p>
