Code example for LinkedList

Methods: indexOf, remove

0
        Themes.add(t);
    } 
 
    public boolean removeThemeFromList(ThemeList t) {
        try { 
            Themes.remove(Themes.indexOf(t));
            return true; 
        } 
        catch (IndexOutOfBoundsException e) {
            Log.e(TAG, "Exception on Deleting Theme from List", e);
            return false; 
        } 
    } 
 
    public int getThemeCount() { 
        return Themes.size();
    } 
}