Programming with Java, I have an ArrayList<Integer> with values of [1,2,3] and I want to create separate integer variables a, b, and c that contain values from the ArrayList in the order that I create them. In Python I would:
l = [1,2,3]
a,b,c = l
and a, b, and c would have the values 1, 2, 3, respectively. How would you do that in Java?