import java.util.ArrayList;

public class ArrayListPractice
{
    /**
     * Removes all occurrences of wordToRemove from words
     * @param words the list from which to remove
     * @param wordToRemove the word to remove
     */
    public static void removeWord(ArrayList<String> words, String wordToRemove)
    {
        // TODO implement
    }

    /**
     * Duplicates each element in list that matches elem. Each duplicate
     * element is adjacent to the original element. 
     * @param list the list from which to duplicate elements
     * @param elem the element to duplicate
     */
    public static void duplicateMatching(ArrayList<Integer> list, Integer elem)
    {
        // TODO implement
    }

    /**
     * Removes all adjacent duplicate elements from list.
     * @param list the list from which to remove elements
     */
    public static void removeAdjacentDuplicates(ArrayList<Integer> list)
    {
        // TODO implement
    }
}
