title: Use DTO or not?
body: <p>It seems to be very simple design question but I am curious of your opinions.</p>
  
  <p>I have a DAO layer and one method returns both max and min value for something. So it returns two integer values but using as a return type <code>int[]</code> with two elements <code>int[0]=min_val</code> and <code>int[1]=max_val</code> is not very clear for the method caller, because he has to exactly know which element is first and which is the second.</p>
  
  <p>Should I use here some kind of DTO like this...</p>
  
  <pre><code>class RangeValuesDTO {
    private int min_val;
  
    private int max_val;
  }
  </code></pre>
  
  <p>?</p>
  
  <p>What is the right pattern in such simple situation?</p>