code: public static void removeFromList(List<String> list, String value) {
          int foundIndex = -1;
          int i = 0;
          for (String id : list) {
              if (id.equalsIgnoreCase(value)) {
                  foundIndex = i;
                  break;
              }
              i++;
          }
          if (foundIndex != -1) {
              list.remove(foundIndex);
          }
      }
docs: Removes a value from the list.
  
  @param list the list
  @param value value to remove