Tagged Questions
2
votes
2answers
235 views
Is using “out” or “ref” parameters in Java methods to return extra values bad?
I happened to create a mutable class like this:
class Mutable<T> {
private T value;
public Mutable() { this.value = null; }
public Mutable(T value) { this.value = value; }
T ...