In Perl, I can say:
my @list = ( 1, 2, 3 );
my ( $a, $b, $c ) = @list;
In Java, as far as I can tell, I need to do this:
List<Integer> list = { 1, 2, 3 };
int a = list.get(0);
int b = list.get(1);
int c = list.get(2);
Does there exist some kind of syntactic sugar that will let me assign all three variables in a single line of code, like Perl?