I have two list with same size but type are different.
For example :
List<String> controlColor = new ArrayList<String>();
List<Integer> brightnessValue_1 = new ArrayList<Integer>();
Now I want get the data from two list from the same position.
For example :
int i = 0;
for(String ledColor : controlColor) {
Color color = Color.parseCSS(ledColor);
int brightnessValue = brightnessValue_1.get(i);
++i;
}
In the above way I can the data from two list and from same position at a time but is there any other way to do the same thing because I wanted to avoid to use extra variable.