I have an int [] [] object. It is defined in my code as shown below:
public int[][] position = { {20, 30}, {73, 91}, {82, 38} };
Is it possible to get the value of the first value (on the left) in each of the pairs of parentheses and save them as separate int variables using a for loop? Basically, can I extract "20", "73" and "82" and store them in int variables separately?
java int extract
Dillon chaffey
source share