public static int findMinutesInReminderList(ArrayList<Integer> values,int minutes){
  int index=values.indexOf(minutes);
  if (index == -1) {
    Log.e(TAG,"Cannot find minutes (" + minutes + ") in list");
    return 0;
  }
  return index;
}

public static int findMinutesInReminderList ( ArrayList < Integer > values , int minutes ) { int index = values . indexOf ( minutes ) ; if ( index == - 1 ) { Log . e ( TAG , "Cannot find minutes (" + minutes + ") in list" ) ; return 0 ; } return index ; }
finds the index of the given " minutes " in the " values " list .
