title: Can you assign to multiple variables at once from values in an array in Java?
body: <p>In Perl, I can say:</p>
  
  <pre><code>my @list = ( 1, 2, 3 );
  my ( $a, $b, $c ) = @list;
  </code></pre>
  
  <p>In Java, as far as I can tell, I need to do this:</p>
  
  <pre><code>List&lt;Integer&gt; list = { 1, 2, 3 };
  int a = list.get(0);
  int b = list.get(1);
  int c = list.get(2);
  </code></pre>
  
  <p>Does there exist some kind of syntactic sugar that will let me assign all three variables in a single line of code, like Perl?</p>