title: Java: returning two ints from a method call
body: <p>I do this a lot in my code that works with lots of 2 dimensional coordinates:</p>
  
  <pre><code>int[] getSize() {
      int[] res = {gridRows, gridColumns};
      return res;
  }
  </code></pre>
  
  <p>I know that I could define a tiny class and get type safety but I haven't because it annoys me to have such a trivial class in it's own little trivial .java file that I have to incorporate in my code.</p>
  
  <p>Do you think this is ugly, bad, or evil? Or do you do it too?</p>
  
  <p></p>