package ru.parsentev.task_011;

import org.slf4j.Logger;

import static org.slf4j.LoggerFactory.getLogger;

/**
 * TODO: comment
 *
 * @author parsentev
 * @since 28.07.2016
 */
public class ArrayContainsOne {
    private static final Logger log = getLogger(ArrayContainsOne.class);
    private final int[] values;

    public ArrayContainsOne(final int[] values) {
        this.values = values;
    }

    public boolean containsOnlyOne() {
        throw new UnsupportedOperationException();
    }
}

@@ -447,49 +447,138 @@
     
-throw new UnsupportedOperationException()
+for (int value : values) %7B%0A            if (value != 1) %7B%0A                return false;%0A            %7D%0A        %7D%0A        return true
 ;%0A  

Task_011