title: Android Function to return an array directly into variables
body: <p>I saw that javascript has something similar.<br>
  Is it possible to do something like this in Android?
  I know how to do it with array names, my question is about returning and assigning directly from the variables that compose the arrays.</p>
  
  <pre class="lang-js prettyprint-override"><code>private int[] calcHead() {
      int i;
      int j;
      int k;
      // Do stuff
      return {i, j, k};     &lt;-- is this possible? (I am getting error: "The Method must return a result of type int[]")
  }
  
  private void otherFunc(){
      int a;
      int b;
      int c;
  
      {a, b, c} = calcHead();   &lt;-- is this possible?
  }
  </code></pre>