Code example for SortedSet

Methods: addcontainsremovesize

0
     * @param scv 
     * @param num 
     */ 
    private void toggleNumber(SudokuCellView scv, int num) {
        SudokuCell cell = scv.getCell();
        if (cell.getMarks().contains(num)) {
            cell.getMarks().remove(num);
        } else { 
            cell.getMarks().add(num);
        } 
 
        if (!mCompleted && cell.getMarks().size() == 1) {
            evaluatePuzzleCompletion(); 
        } 
        scv.invalidate();
        updateToggles(scv);
        updateHighlights(scv);
    } 
 
    private void clearCell(SudokuCellView scv) {
Contextual code suggestions in your IDE  Get Codota for Java