How to return two or more objects in one method?
<p>Lets say you want a method to return both a generated object and a boolean indicating the success or failure of doing so. </p>

<p>In some languages, like C, you might have a function return additional objects by having reference parameters, but you cannot do this in Java since Java is "pass-by-value", so how do you return several objects in Java?</p>
