I want to get the object taht is in one of the tow lists:
hight1 and 2 are lists with objects with a listsice from arround 800. list is a variable with the number 1 or 2 to detect wich list should be used. This hole thing gives an compile error in the last line that says wrong type for X.
X is an int-typ. what could be wrong ??
java.util.ArrayList hight;
if(list == 1)
{
hight = hight1;
}
else if( list == 2)
{
hight = hight2;
}
Informationsträger intStart = hight.get(X);

