int[] indexes = getSelectedIndexes();  for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return(true);  return(false);
return isSelected (index);
isIndexSelected(int index){  int[] indexes = getSelectedIndexes();  for (int i = 0; i < indexes.length; i++)    if (indexes[i] == index)      return(true);  return(false);}