Hello to all,
I am wondering if there is some way in java to apply an array to variables(in one line of code).
In python the following works:Is there any equivalent to this in java?Code:
a = [1,2]
b,c = a
PS: Sorry for using python code but I find it easier to learn by comparison.